Update .gitlab-ci.yml

environments/production/deployments/2
Theenoro 2018-09-05 13:51:14 +02:00
parent 41f31a15d7
commit 755ab5caf6
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@ build:
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- npm cache clean --force - npm cache clean --force
- rm -rf node_modules - rm -rf node_modules
- export SSH_U=$(echo $SSH_USER)
- export SSH_S=$(echo $SSH_SERVER)
- npm install --save - npm install --save
script: script:
- npm run build - npm run build
after_script: after_script:
- export SSH_U=$(echo $SSH_USER)
- export SSH_S=$(echo $SSH_SERVER)
- export c=$PWD - export c=$PWD
- ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $SSH_U@$SSH_S 'rm -rf $HOME/wbm/*' - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $SSH_U@$SSH_S 'rm -rf $HOME/wbm/*'
- scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r $c/build/* $SSH_U@$SSH_S:/home/$SSH_U/wbm - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r $c/build/* $SSH_U@$SSH_S:/home/$SSH_U/wbm