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:
@@ -10,19 +10,19 @@ variables:
|
|||||||
DB_USERNAME: root
|
DB_USERNAME: root
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- build
|
||||||
- deploy_697
|
- deploy
|
||||||
- deploy_736
|
- deploy
|
||||||
|
|
||||||
unit_test:
|
build:
|
||||||
stage: test
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cp .env.example .env
|
- cp .env.example .env
|
||||||
- composer install
|
- composer install
|
||||||
- php artisan key:generate
|
- php artisan key:generate
|
||||||
|
|
||||||
deploy_697:
|
deploy_697:
|
||||||
stage: deploy_697
|
stage: deploy
|
||||||
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 )'
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
@@ -38,7 +38,7 @@ deploy_697:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
deploy_736:
|
deploy_736:
|
||||||
stage: deploy_736
|
stage: deploy
|
||||||
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 )'
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
|
|||||||
@@ -54,7 +54,8 @@
|
|||||||
chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/
|
chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/
|
||||||
|
|
||||||
echo 'Migrate DB'
|
echo 'Migrate DB'
|
||||||
{{ $app_dir_697 }}/current/php artisan migrate
|
cd {{ $app_dir_697 }}/current/
|
||||||
|
php artisan migrate
|
||||||
@endtask
|
@endtask
|
||||||
|
|
||||||
@task('clone_repository_736')
|
@task('clone_repository_736')
|
||||||
@@ -86,5 +87,6 @@
|
|||||||
chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/
|
chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/
|
||||||
|
|
||||||
echo 'Migrate DB'
|
echo 'Migrate DB'
|
||||||
{{ $app_dir_736 }}/current/php artisan migrate
|
cd {{ $app_dir_736 }}/current/
|
||||||
|
php artisan migrate
|
||||||
@endtask
|
@endtask
|
||||||
Reference in New Issue
Block a user