forked from linux/WebHosting
14 lines
358 B
YAML
14 lines
358 B
YAML
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."
|