Start using gitlab ci

This commit is contained in:
Late Night Defender 2023-11-19 03:30:14 +07:00
parent a868d4e908
commit f4209e154c
2 changed files with 23 additions and 1 deletions

22
.gitlab-ci.yml Normal file
View file

@ -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

View file

@ -4,7 +4,7 @@ Description=TechTransThai.org Website
[Container]
ContainerName=ttt-org
Image=ttt-org
PublishPort=8084:80
PublishPort=8089:80
[Service]
Restart=always