fix: ssh user and adress of test-nantes & stage for test-nantes

This commit is contained in:
Jean-Baptiste Pasquier 2019-12-03 14:51:54 +01:00
parent 7d382df653
commit a821bc1c3b
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62

View File

@ -2,7 +2,7 @@ image: node
stages:
- deploy_staging
- deploy_production
- deploy_preproduction
## STAGING ##
@ -24,7 +24,7 @@ deploy_paris_stg:
- sib
deploy_nantes:
stage: deploy_staging
stage: deploy_preproduction
environment:
name: nantes
url: https://test-nantes.happy-dev.fr
@ -33,7 +33,7 @@ deploy_nantes:
- 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/
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-nantes@ssh-test-nantes.happy-dev.fr:~/www/
only:
- staging
- feat/manager_deploy
@ -43,7 +43,7 @@ deploy_nantes:
## PRODUCTION ##
deploy_paris:
stage: deploy_production
stage: deploy_preproduction
environment:
name: paris
url: https://test-paris.happy-dev.fr