fix: Deployment SSH keys
Some checks failed
Deploy / Prepare Build (push) Failing after 13s

This commit is contained in:
Matthew McKinnon 2024-10-28 21:58:57 +10:00
parent 430dc07b73
commit 2ea0cb56ed

View File

@ -28,14 +28,14 @@ jobs:
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
echo "HOST *" > ~/.ssh/config
echo "StrictHostKeyChecking no" >> ~/.ssh/config
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
echo "nameserver 10.10.10.1" > /etc/resolv.conf
ssh-add -L
cat ~/.ssh/known_hosts
# ./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"