Start using gitlab ci
This commit is contained in:
parent
a868d4e908
commit
f4209e154c
2 changed files with 23 additions and 1 deletions
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal 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
|
|
@ -4,7 +4,7 @@ Description=TechTransThai.org Website
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=ttt-org
|
ContainerName=ttt-org
|
||||||
Image=ttt-org
|
Image=ttt-org
|
||||||
PublishPort=8084:80
|
PublishPort=8089:80
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in a new issue