From f4209e154ce84490b887da24c1f5d5f9d77014d7 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Sun, 19 Nov 2023 03:30:14 +0700 Subject: [PATCH] Start using gitlab ci --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ ttt-org.container | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..92f3972 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +stages: + - prepare + - build + - deploy + +remove-old-services: + stage: prepare + script: + - systemctl --user stop ttt-org + - podman rm --force ttt-org + - cp ttt-org.container ~/.config/containers/systemd + - systemctl --user daemon-reload + +container-build: + stage: build + script: + - podman build -t ttt-org . + +container-deploy: + stage: deploy + script: + - systemctl --user start ttt-org diff --git a/ttt-org.container b/ttt-org.container index f5a08ee..15722f6 100644 --- a/ttt-org.container +++ b/ttt-org.container @@ -4,7 +4,7 @@ Description=TechTransThai.org Website [Container] ContainerName=ttt-org Image=ttt-org -PublishPort=8084:80 +PublishPort=8089:80 [Service] Restart=always