Update .gitlab-ci.yml

This commit is contained in:
Mathieu Lagace
2018-09-24 16:07:19 +00:00
parent 839340acc2
commit 2ffa5d1ba3

View File

@@ -24,18 +24,6 @@ deploy_stage:
- chmod -R 777 bootstrap - chmod -R 777 bootstrap
- composer update - composer update
- 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/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" - sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C697 && php artisan migrate"
- sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C736 && php artisan migrate"
deploy_production:
stage: deploy
environment: Production
only:
- tags
script:
- sshpass -V
- export SSHPASS=$USER_PASS
- chmod -R 777 storage
- chmod -R 777 bootstrap
- composer update
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C697
- sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C697 && php artisan migrate"