mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Mise a jour CI/CD
This commit is contained in:
@@ -21,7 +21,7 @@ unit_test:
|
|||||||
- composer install
|
- composer install
|
||||||
- php artisan key:generate
|
- php artisan key:generate
|
||||||
|
|
||||||
deploy_production:
|
deploy_697:
|
||||||
stage: deploy_697
|
stage: deploy_697
|
||||||
script:
|
script:
|
||||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
@@ -37,7 +37,7 @@ deploy_production:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
deploy_production:
|
deploy_736:
|
||||||
stage: deploy_736
|
stage: deploy_736
|
||||||
script:
|
script:
|
||||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
|
|||||||
@@ -52,6 +52,9 @@
|
|||||||
|
|
||||||
echo 'Setting permission'
|
echo 'Setting permission'
|
||||||
chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/
|
chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/
|
||||||
|
|
||||||
|
echo 'Migrate DB'
|
||||||
|
{{ $app_dir_697 }}/current/php artisan migrate
|
||||||
@endtask
|
@endtask
|
||||||
|
|
||||||
@task('clone_repository_736')
|
@task('clone_repository_736')
|
||||||
@@ -81,4 +84,7 @@
|
|||||||
|
|
||||||
echo 'Setting permission'
|
echo 'Setting permission'
|
||||||
chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/
|
chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/
|
||||||
|
|
||||||
|
echo 'Migrate DB'
|
||||||
|
{{ $app_dir_736 }}/current/php artisan migrate
|
||||||
@endtask
|
@endtask
|
||||||
Reference in New Issue
Block a user