cicd: acn & woma

This commit is contained in:
Jean-Baptiste Pasquier 2020-12-07 19:13:13 +00:00
parent 1a7a41dae6
commit f68cd98964
1 changed files with 36 additions and 0 deletions

View File

@ -930,5 +930,41 @@ montpellier:
only:
- master
when: manual
tags:
- deploy
acn:
stage: deployment
environment:
name: acn
url: https://acn.hubl.world
before_script:
- npm ci --cache .npm --prefer-offline --only=production
script:
- echo "$APP_CONFIG_ACN" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* acn@astral.startinblox.com:~/client/dist/
only:
- master
when: manual
tags:
- deploy
woma:
stage: deployment
environment:
name: woma
url: https://woma.hubl.world
before_script:
- npm ci --cache .npm --prefer-offline --only=production
script:
- echo "$APP_CONFIG_WOMA" > config.json
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* woma@astral.startinblox.com:~/client/dist/
only:
- master
when: manual
tags:
- deploy