image: node:14 stages: - test - deploy_test test: stage: test script: - yarn install - yarn test deploy_test: stage: deploy_test script: - apt-get update -qq && apt-get install -y -qq sshpass - export SSHPASS=$DEPLOY_PASS - sshpass -e ssh $DEPLOY_USER@$DEPLOY_SERVER "cd /var/opentalent/git/portail_v2 && git pull && echo 'Deploy successful' " only: - home