image: shockrah/website:1.2 before_script: - eval $(ssh-agent -s) - echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null - mkdir -p ~/.ssh/ - chmod 700 ~/.ssh/ deploy: stage: build script: - bash ./build.sh - echo the next item will fail - sshpass -p $SSH_PASS scp -o StrictHostKeyChecking=no -r ./$MIRROR/ root@shockrah.xyz:/var/wwww/website