From cbbfc9e841e5e5c6cff4503808864472507d8d8b Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Sun, 30 Jul 2023 17:21:52 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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