Update .gitlab-ci.yml

This commit is contained in:
Mathieu Lagace
2018-09-24 17:42:11 +00:00
parent 0d8117c96d
commit 1a321d1021

View File

@@ -11,14 +11,13 @@ before_script:
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install - php composer.phar install
- mv composer.phar /usr/local/bin/composer - mv composer.phar /usr/local/bin/composer
- sshpass -V
deploy_stage: deploy_stage:
stage: build stage: build
only: only:
- master - master
script: script:
- sshpass -V
- export SSHPASS=$USER_PASS
- chmod -R 777 storage - chmod -R 777 storage
- chmod -R 777 bootstrap - chmod -R 777 bootstrap
- composer update - composer update
@@ -28,6 +27,7 @@ deploy_697:
environment: environment:
name: C697 name: C697
script: script:
- export SSHPASS=$USER_PASS
- 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 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"
@@ -36,5 +36,6 @@ deploy_736:
environment: environment:
name: C736 name: C736
script: script:
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C736 - 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" - sshpass -e ssh -t admin@54.39.97.124 "cd /var/www/website/C736 && php artisan migrate"