cicd: add casaco

This commit is contained in:
Jean-Baptiste Pasquier 2020-07-21 09:53:18 +00:00
parent dc0e03acf5
commit 1d4b942869
1 changed files with 18 additions and 0 deletions

View File

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