This commit is contained in:
WinterMyst 2024-09-22 19:28:08 +02:00
parent e0f617f205
commit e5bd48a204

View File

@ -39,7 +39,7 @@ release:
- chmod 700 ~/.ssh
# Decode and set up the SSH private key
- |
printf '%s' "SSH_PRIVATE_KEY_ENCODED | 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