cicd: add playground

This commit is contained in:
Jean-Baptiste Pasquier 2020-06-29 17:59:23 +00:00
parent 6999ea6295
commit 0ae350c33e

View File

@ -282,3 +282,21 @@ communityhubl:
when: manual
tags:
- deploy
playground:
stage: deployment
environment:
name: playground
url: https://playground.hubl.world
before_script:
- npm ci --cache .npm --prefer-offline --only=production
script:
- echo "$APP_CONFIG_PLAYGROUND" > 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/* playground@astral.startinblox.com:~/front/
only:
- master
when: manual
tags:
- deploy