.gitlab-ci.yml 398 B

1234567891011121314151617181920
  1. image: node:14
  2. stages:
  3. - test
  4. - deploy_test
  5. test:
  6. stage: test
  7. script:
  8. - yarn install
  9. - yarn test
  10. deploy_test:
  11. stage: deploy_test
  12. script:
  13. - apt-get update -qq && apt-get install -y -qq sshpass
  14. - export SSHPASS=$DEPLOY_PASS
  15. - sshpass -e ssh $DEPLOY_USER@$DEPLOY_SERVER "cd /var/opentalent/git/portail_v2 && git pull && echo 'Deploy successful' "
  16. only:
  17. - home