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