mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 10:56:52 +00:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
baecb2a465
commit
cbbfc9e841
1 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,8 @@ build-job: # This job runs in the test stage.
|
||||||
|
|
||||||
deploy-job: # This job runs in the deploy stage.
|
deploy-job: # This job runs in the deploy stage.
|
||||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
environment: production
|
|
||||||
script:
|
script:
|
||||||
- echo "Deploying application..."
|
- podman run --name little-lines -p 8081:80 -d little-lines:$(git log -1 --oneline | awk '{print $1}')
|
||||||
- echo "Application successfully deployed."
|
- podman generate systemd little-lines > ~/.config/systemd/user/little-lines.service
|
||||||
|
- systemctl --user daemon-reload
|
||||||
|
- systemctl --user enable little-lines
|
Loading…
Reference in a new issue