Skip to content
Snippets Groups Projects
Commit daa9dbf9 authored by plup's avatar plup
Browse files

cicd: added alpha, paris and toulouse

parent cc2ee01f
No related branches found
No related tags found
1 merge request!118WIP: joined circle spawns in my circles
Pipeline #4773 passed with warnings
...@@ -9,7 +9,7 @@ stages: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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:
- 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: script:
- echo 'Not happening yet...' - 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment