Update .gitlab-ci.yml

This commit is contained in:
Mathieu Lagace
2018-09-24 17:36:19 +00:00
parent fc6255363e
commit 535048b687

View File

@@ -13,8 +13,7 @@ before_script:
- mv composer.phar /usr/local/bin/composer
deploy_stage:
stage: deploy
environment: Staging
stage: build
only:
- master
script:
@@ -23,7 +22,19 @@ deploy_stage:
- chmod -R 777 storage
- chmod -R 777 bootstrap
- composer update
deploy_697:
stage: deploy
environment:
name: 697
script:
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C697
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C736
- sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C697 && php artisan migrate"
deploy_736:
stage: deploy
environment:
name: 736
script:
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C736
- sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C736 && php artisan migrate"