2019-11-20 20:05:23 +00:00
|
|
|
image: node
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
deploy_staging:
|
|
|
|
stage: deploy
|
|
|
|
environment: staging
|
|
|
|
script:
|
2019-11-20 21:37:41 +00:00
|
|
|
- echo "$APP_CONFIG" > config.json
|
|
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
2019-11-20 21:03:08 +00:00
|
|
|
- npm install
|
|
|
|
- npm run build
|
2019-11-20 21:41:55 +00:00
|
|
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
|
2019-11-20 20:05:23 +00:00
|
|
|
only:
|
2019-11-20 22:02:44 +00:00
|
|
|
- staging
|
2019-11-20 20:06:30 +00:00
|
|
|
tags:
|
|
|
|
- sib
|