add a gitlab-ci file

This commit is contained in:
Andreas Zweili 2020-07-17 16:38:08 +02:00
parent 44144dc23a
commit 699dd865cb
1 changed files with 11 additions and 0 deletions

11
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,11 @@
stages:
- deploy
deploy-to-prod:
stage: deploy
script:
- docker-compose -H "ssh://$STAGE_SERVER_USER@$STAGE_SERVER_IP" down --remove-orphans
- docker-compose -H "ssh://$STAGE_SERVER_USER@$STAGE_SERVER_IP" pull
- docker-compose -H "ssh://$STAGE_SERVER_USER@$STAGE_SERVER_IP" up -d
only:
- master