try a hack

This commit is contained in:
Andreas Zweili 2020-07-17 17:12:29 +02:00
parent abed7f9dc3
commit 3fcb1b3c00
1 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@ stages:
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
- ssh $STAGE_SERVER_USER@$STAGE_SERVER_IP "cd /home/localadmin/network_inventory;docker-compose pull;docker-compose up --build -d"
only:
- master