cicd: added alpha, paris and toulouse

This commit is contained in:
plup 2020-03-19 13:44:10 +01:00
parent cc2ee01fc7
commit daa9dbf9f5
1 changed files with 48 additions and 10 deletions

View File

@ -9,7 +9,7 @@ stages:
## VALIDATION ##
deploy_test1:
test1:
stage: integration
environment:
name: test1
@ -26,7 +26,7 @@ deploy_test1:
tags:
- deploy
deploy_test2:
test2:
stage: integration
environment:
name: test2
@ -43,7 +43,7 @@ deploy_test2:
tags:
- deploy
deploy_test3:
test3:
stage: integration
environment:
name: test3
@ -60,7 +60,7 @@ deploy_test3:
tags:
- deploy
deploy_stg1:
stg1:
stage: acceptance
environment:
name: stg1
@ -77,7 +77,7 @@ deploy_stg1:
tags:
- deploy
deploy_stg2:
stg2:
stage: acceptance
environment:
name: stg2
@ -96,11 +96,28 @@ deploy_stg2:
## LIVE DEPLOYMENTS ##
deploy_nantes:
alpha:
stage: deployment
environment:
name: paris
url: https://alpha.happy-dev.fr
script:
- echo "$APP_CONFIG_ALPHA" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* alpha@ssh-alpha.happy-dev.fr:~/sib/www/
only:
- master
when: manual
tags:
- deploy
nantes:
stage: deployment
environment:
name: nantes
url: https://nantes.happy-dev.fr
url: https://app.nantes.happy-dev.fr
script:
- echo "$APP_CONFIG_NANTESHD" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
@ -113,13 +130,34 @@ deploy_nantes:
tags:
- deploy
deploy_paris:
paris:
stage: deployment
environment:
name: paris
url: https://paris.happy-dev.fr
url: https://app.paris.happy-dev.fr
script:
- echo 'Not happening yet...'
- echo "$APP_CONFIG_PARIS" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* paris@ssh-paris.happy-dev.fr:~/sib/www/
only:
- master
when: manual
tags:
- deploy
toulouse:
stage: deployment
environment:
name: toulouse
url: https://smart-toulouse.happy-dev.fr
script:
- echo "$APP_CONFIG_TOULOUSE" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* smart-toulouse@ssh-smart-toulouse.happy-dev.fr:~/sib/www/
only:
- master
when: manual