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