18 lines
359 B
YAML
18 lines
359 B
YAML
|
image: node
|
||
|
|
||
|
stages:
|
||
|
- deploy
|
||
|
|
||
|
deploy_staging:
|
||
|
stage: deploy
|
||
|
environment: staging
|
||
|
script:
|
||
|
- npm install
|
||
|
- echo $APP_CONFIG
|
||
|
- echo $APP_CONFIG > config.json
|
||
|
- npm run build
|
||
|
- echo $SSH_PRIAVTE_KEY > gitlab.key
|
||
|
- scp -i gitlab.key -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
|
||
|
only:
|
||
|
- feat/manager_deploy
|