stages:
- prepare
- build
- deploy
remove-old-services:
stage: prepare
script:
- podman stop ll-backend
- podman rm ll-backend
container-build:
stage: build
- podman build -t ll-backend .
container-deploy:
stage: deploy
- podman run --name ll-backend -p 5001:5001 -v /home/sasha/Data1/Apps/ll-backend/.env:/opt/ll-backend/.env -d ll-backend
- podman generate systemd ll-backend > ~/.config/systemd/user/ll-backend.service
- systemctl --user daemon-reload
- systemctl --user enable ll-backend