From 1a321d10215a1342a110f9c3da4973e0c05acd8d Mon Sep 17 00:00:00 2001 From: Mathieu Lagace Date: Mon, 24 Sep 2018 17:42:11 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4080f749..9eda5d12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,14 +11,13 @@ before_script: - curl -sS https://getcomposer.org/installer | php - php composer.phar install - mv composer.phar /usr/local/bin/composer +- sshpass -V deploy_stage: stage: build only: - master script: - - sshpass -V - - export SSHPASS=$USER_PASS - chmod -R 777 storage - chmod -R 777 bootstrap - composer update @@ -28,6 +27,7 @@ deploy_697: environment: name: C697 script: + - export SSHPASS=$USER_PASS - 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" @@ -36,5 +36,6 @@ deploy_736: environment: name: C736 script: + - export SSHPASS=$USER_PASS - 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" \ No newline at end of file