diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fe7986..1371be0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,8 @@ build-job: # This job runs in the test stage. deploy-job: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. - environment: production script: - - echo "Deploying application..." - - echo "Application successfully deployed." + - podman run --name little-lines -p 8081:80 -d little-lines:$(git log -1 --oneline | awk '{print $1}') + - podman generate systemd little-lines > ~/.config/systemd/user/little-lines.service + - systemctl --user daemon-reload + - systemctl --user enable little-lines \ No newline at end of file