2019-11-20 20:05:23 +00:00
|
|
|
image: node
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
deploy_staging:
|
|
|
|
stage: deploy
|
|
|
|
environment: staging
|
|
|
|
script:
|
2019-11-20 20:10:50 +00:00
|
|
|
- echo $APP_CONFIG > config.json
|
2019-11-20 20:09:14 +00:00
|
|
|
- echo $SSH_PRIVATE_KEY > gitlab.key
|
2019-11-20 21:03:08 +00:00
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
|
2019-11-20 20:05:23 +00:00
|
|
|
only:
|
|
|
|
- feat/manager_deploy
|
2019-11-20 20:06:30 +00:00
|
|
|
tags:
|
|
|
|
- sib
|