BUGFIX: Allow ssh agent to work on alpine

* Use a file instead of bash expansion.
This commit is contained in:
Daniel Siepmann 2017-04-11 20:56:30 +02:00
parent 5ec3d2eea2
commit 771d84e548
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -16,7 +16,9 @@ sync:github:
- apk add --no-cache openssh-client git
# SSH deploy key
- eval $(ssh-agent -s)
- ssh-add <(echo "${SSH_PRIVATE_KEY}")
- echo "$SSH_PRIVATE_KEY" > /tmp/private_key
- chmod go-rwx /tmp/private_key; chmod u-x /tmp/private_key
- ssh-add /tmp/private_key
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script: