This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
backend/.gitlab-ci.yml

24 lines
568 B
YAML
Raw Normal View History

2023-09-24 11:36:06 +00:00
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:
2023-09-24 11:59:02 +00:00
- podman run --name ll-backend -p 5001:5001 -v /home/sasha/Data1/Apps/ll-backend/.env:/opt/ll-backend/.env -d ll-backend
2023-09-24 11:36:06 +00:00
- podman generate systemd ll-backend > ~/.config/systemd/user/ll-backend.service
- systemctl --user daemon-reload
- systemctl --user enable ll-backend