cicd: added gitlab-ci
This commit is contained in:
parent
d0ebb84d24
commit
6459e73e8b
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user