Skip to content

Commit

Permalink
fix ssh task not working on some setups
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskbx committed Aug 18, 2020
1 parent 74a5d06 commit c340140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ if [ $# -gt 0 ]; then
exit 1
fi

eval $(ssh-agent -s)
echo "$SSH_KEY" | tr -d '\r' | ssh-add -
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_FINGERPRINT" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa

# ci secrets
# --------------------------------------------------------------------
Expand Down

0 comments on commit c340140

Please sign in to comment.