From b6b4ec8d46787c42abe423fc700f84f583ebc655 Mon Sep 17 00:00:00 2001 From: Basil Bruhn Date: Tue, 29 Oct 2024 16:26:06 +0100 Subject: [PATCH] ci --- .gitlab-ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yaml diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml new file mode 100644 index 0000000..25c23cb --- /dev/null +++ b/.gitlab-ci.yaml @@ -0,0 +1,13 @@ +stages: + - deploy + +deploy: + stage: deploy + only: + - main # Only run this job on merges to the main branch + + script: + - echo "Starting deployment..." + - docker-compose up -d # Start services without interrupting existing ones + - docker exec nginx_proxy nginx -s reload # Reload NGINX inside the container + - echo "Deployment completed."