stages: - deploy image: faller222/alpine-ssh deploy: stage: deploy only: - master variables: GIT_STRATEGY: none script: - echo "$SSH_KEY" > sshKeyFile - chmod 400 sshKeyFile # Batch - ssh -p 2222 -o "StrictHostKeyChecking no" -i sshKeyFile -t root@pgrado.faller.com.uy "/data/kill" - ssh -p 2222 -o "StrictHostKeyChecking no" -i sshKeyFile -t root@pgrado.faller.com.uy "/data/getGit"