Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ jobs:
mkdir -p ~/.ssh
chmod 700 ~/.ssh

# Using printf instead of echo prevents newline formatting bugs
printf "%s\n" "$PRIVATE_KEY" > ~/.ssh/id_rsa
# Safely write the key and strip any invisible Windows carriage returns
echo "$PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa

ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts

# Added -v for debugging, -o for RSA support, and $REMOTE_USER
ssh -v -o PubkeyAcceptedKeyTypes=+ssh-rsa -i ~/.ssh/id_rsa "$REMOTE_USER@$HOST" "
export IMAGE_TAG=$IMAGE_TAG
cd docker-compose
Expand Down