hubl/.gitlab-ci.yml
2019-11-20 22:14:04 +01:00

21 lines
443 B
YAML

image: node
stages:
- deploy
deploy_staging:
stage: deploy
environment: staging
script:
- echo $APP_CONFIG > config.json
- echo $SSH_PRIVATE_KEY | tr -d '\r' > gitlab.key
- chmod 600 gitlab.key
- cat gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
only:
- feat/manager_deploy
tags:
- sib