Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
erenfn authored Sep 11, 2024
1 parent 00335fb commit 5dfc2bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa.pem # Use id_rsa.pem
chmod 600 ~/.ssh/id_rsa.pem # Adjust file permissions
eval $(ssh-agent -s)
echo "$SSH_PASSPHRASE" | ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa.pem # No passphrase needed
echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
ssh-add -l # List added keys for debugging
Expand Down

0 comments on commit 5dfc2bf

Please sign in to comment.