forked from linux/WebHosting
ci
This commit is contained in:
13
.gitlab-ci.yaml
Normal file
13
.gitlab-ci.yaml
Normal file
@@ -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."
|
||||
Reference in New Issue
Block a user