fix(ci): strip carriage returns from private key file
This commit is contained in:
@@ -40,6 +40,7 @@ jobs:
|
||||
echo "[deploy] setting up SSH and deploying shadow copy"
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
tr -d '\r' < ~/.ssh/id_rsa > ~/.ssh/id_rsa.tmp && mv ~/.ssh/id_rsa.tmp ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H 178.104.200.7 >> ~/.ssh/known_hosts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user