cicd: fix alpha and add community

This commit is contained in:
Jean-Baptiste Pasquier 2020-04-01 16:08:27 +00:00
parent 25a857b675
commit 2497b502ad

View File

@ -99,7 +99,7 @@ stg2:
alpha: alpha:
stage: deployment stage: deployment
environment: environment:
name: paris name: alpha
url: https://alpha.happy-dev.fr url: https://alpha.happy-dev.fr
script: script:
- echo "$APP_CONFIG_ALPHA" > config.json - echo "$APP_CONFIG_ALPHA" > config.json
@ -113,6 +113,23 @@ alpha:
tags: tags:
- deploy - deploy
community:
stage: deployment
environment:
name: community
url: https://community.startinblox.com
script:
- echo "$APP_CONFIG_COMMUNITY" > 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/* community@astral.startinblox.com:~/front/
only:
- master
when: manual
tags:
- deploy
etuc: etuc:
stage: deployment stage: deployment
environment: environment: