fix: Deployment SSH keys
All checks were successful
Deploy / Prepare Build (push) Successful in 3m41s

This commit is contained in:
Matthew McKinnon 2024-10-28 22:09:56 +10:00
parent d5f23c5059
commit a22c81d7b5

View File

@ -27,9 +27,8 @@ jobs:
- name: Deploy containers - name: Deploy containers
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}") ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
echo "HOST *" > ~/.ssh/config echo "HOST *" > ~/.ssh/config