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
1 changed files with 18 additions and 1 deletions

View File

@ -99,7 +99,7 @@ stg2:
alpha:
stage: deployment
environment:
name: paris
name: alpha
url: https://alpha.happy-dev.fr
script:
- echo "$APP_CONFIG_ALPHA" > config.json
@ -113,6 +113,23 @@ alpha:
tags:
- 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:
stage: deployment
environment: