cicd: added gitlab-ci

This commit is contained in:
plup 2019-11-20 21:05:23 +01:00
parent d0ebb84d24
commit 6459e73e8b
1 changed files with 17 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
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