24 lines
505 B
YAML
24 lines
505 B
YAML
|
stages:
|
||
|
- prepare
|
||
|
- build
|
||
|
- deploy
|
||
|
|
||
|
remove-old-services:
|
||
|
stage: prepare
|
||
|
script:
|
||
|
- podman stop ll-backend
|
||
|
- podman rm ll-backend
|
||
|
|
||
|
container-build:
|
||
|
stage: build
|
||
|
script:
|
||
|
- podman build -t ll-backend .
|
||
|
|
||
|
container-deploy:
|
||
|
stage: deploy
|
||
|
script:
|
||
|
- podman run --name ll-backend -p 5001:5001 -d ll-backend
|
||
|
- podman generate systemd ll-backend > ~/.config/systemd/user/ll-backend.service
|
||
|
- systemctl --user daemon-reload
|
||
|
- systemctl --user enable ll-backend
|