Mise a jour CI/CD

This commit is contained in:
Mathieu Lagace
2019-08-04 19:19:33 -04:00
parent c6110b47e8
commit d57c648d7f
2 changed files with 8 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ unit_test:
- composer install
- php artisan key:generate
deploy_production:
deploy_697:
stage: deploy_697
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
@@ -37,7 +37,7 @@ deploy_production:
only:
- master
deploy_production:
deploy_736:
stage: deploy_736
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'

View File

@@ -52,6 +52,9 @@
echo 'Setting permission'
chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/
echo 'Migrate DB'
{{ $app_dir_697 }}/current/php artisan migrate
@endtask
@task('clone_repository_736')
@@ -81,4 +84,7 @@
echo 'Setting permission'
chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/
echo 'Migrate DB'
{{ $app_dir_736 }}/current/php artisan migrate
@endtask