cicd: added alpha, paris and toulouse
This commit is contained in:
parent
cc2ee01fc7
commit
daa9dbf9f5
@ -9,7 +9,7 @@ stages:
|
|||||||
|
|
||||||
## VALIDATION ##
|
## VALIDATION ##
|
||||||
|
|
||||||
deploy_test1:
|
test1:
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test1
|
name: test1
|
||||||
@ -26,7 +26,7 @@ deploy_test1:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy_test2:
|
test2:
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test2
|
name: test2
|
||||||
@ -43,7 +43,7 @@ deploy_test2:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy_test3:
|
test3:
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test3
|
name: test3
|
||||||
@ -60,7 +60,7 @@ deploy_test3:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy_stg1:
|
stg1:
|
||||||
stage: acceptance
|
stage: acceptance
|
||||||
environment:
|
environment:
|
||||||
name: stg1
|
name: stg1
|
||||||
@ -77,7 +77,7 @@ deploy_stg1:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy_stg2:
|
stg2:
|
||||||
stage: acceptance
|
stage: acceptance
|
||||||
environment:
|
environment:
|
||||||
name: stg2
|
name: stg2
|
||||||
@ -96,11 +96,28 @@ deploy_stg2:
|
|||||||
|
|
||||||
## LIVE DEPLOYMENTS ##
|
## 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
|
stage: deployment
|
||||||
environment:
|
environment:
|
||||||
name: nantes
|
name: nantes
|
||||||
url: https://nantes.happy-dev.fr
|
url: https://app.nantes.happy-dev.fr
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_NANTESHD" > config.json
|
- echo "$APP_CONFIG_NANTESHD" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
@ -113,13 +130,34 @@ deploy_nantes:
|
|||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy_paris:
|
paris:
|
||||||
stage: deployment
|
stage: deployment
|
||||||
environment:
|
environment:
|
||||||
name: paris
|
name: paris
|
||||||
url: https://paris.happy-dev.fr
|
url: https://app.paris.happy-dev.fr
|
||||||
script:
|
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:
|
only:
|
||||||
- master
|
- master
|
||||||
when: manual
|
when: manual
|
||||||
|
Loading…
Reference in New Issue
Block a user