This commit is contained in:
WinterMyst 2024-09-22 19:20:10 +02:00
parent 7ebcd5452e
commit 7a5918da87

View File

@ -39,7 +39,7 @@ release:
- chmod 700 ~/.ssh
# Decode and set up the SSH private key
- |
printf '%s' "$SSH_PRIVATE_KEY_BASE64" | tr -d '\r\n' | base64 --decode > ~/.ssh/id_rsa
printf '%s' "$SSH_PRIVATE_KEY_ENCODED" | tr -d '\r\n' | base64 --decode > ~/.ssh/id_rsa
if [ $? -ne 0 ]; then
echo "Error: Failed to decode SSH_PRIVATE_KEY_BASE64."
exit 1