Didn't work in alpine version image
Hi, did you try with alpine version image? I can't get it done with alpine version image. here is my .gitlab-ci.yal
deploy:
stage: deploy
script:
- which ssh-agent || apk add --no-cache openssh-client
- eval `ssh-agent -s`
- sshecho $SSH_PRIVATE_KEY | ssh-add
- echo -e Host $PRODUCTION_HOST_IP >> ~/.ssh/config
- echo -e '\tStrictHostKeyChecking no' >> ~/.ssh/config
- ssh $PRODUCTION_USERNAME@$PRODUCTION_HOST_IP 'do someting stuff'
only:
- master