cicd: add volumes

This commit is contained in:
Jean-Baptiste Pasquier 2020-05-22 16:50:30 +00:00
parent f9653163ed
commit 567c7304ed
1 changed files with 18 additions and 0 deletions

View File

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