From 535048b6871eefdcdf2745ab3a83de0de45c92d4 Mon Sep 17 00:00:00 2001 From: Mathieu Lagace Date: Mon, 24 Sep 2018 17:36:19 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d77ac8e..75fda22c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" \ No newline at end of file