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."