hubl/.gitlab-ci.yml

62 lines
1.5 KiB
YAML
Raw Normal View History

2019-11-20 20:05:23 +00:00
image: node
stages:
2019-12-02 20:01:47 +00:00
- deploy_staging
- deploy_preproduction
2019-11-20 20:05:23 +00:00
2019-12-02 20:01:47 +00:00
## STAGING ##
deploy_paris_stg:
stage: deploy_staging
environment:
name: paris_stg
url: https://staging.test-paris.happy-dev.fr
script:
- echo "$APP_CONFIG_PARIS_STG" > config.json
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
only:
- staging
- feat/manager_deploy
tags:
- sib
deploy_nantes:
stage: deploy_preproduction
2019-12-02 20:01:47 +00:00
environment:
name: nantes
url: https://test-nantes.happy-dev.fr
2019-11-20 20:05:23 +00:00
script:
2019-12-02 20:01:47 +00:00
- echo "$APP_CONFIG_NANTES" > config.json
2019-11-20 21:37:41 +00:00
- 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
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-nantes@ssh-test-nantes.happy-dev.fr:~/www/
2019-11-20 20:05:23 +00:00
only:
- staging
2019-12-02 20:01:47 +00:00
- feat/manager_deploy
tags:
- sib
## PRODUCTION ##
deploy_paris:
stage: deploy_preproduction
2019-12-02 20:01:47 +00:00
environment:
name: paris
url: https://test-paris.happy-dev.fr
script:
- echo "$APP_CONFIG_PARIS" > config.json
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-paris@ssh-test-paris.happy-dev.fr:~/www/
only:
- staging
- feat/manager_deploy
when: manual
2019-11-20 20:06:30 +00:00
tags:
- sib