ci: use internal host IP 10.100.0.1 for SSH (hairpin NAT fix)
All checks were successful
Deploy Indiekit Server / deploy (push) Successful in 1m11s

Runner is on the internal network — connecting to the public domain
fails due to hairpin NAT, same as the syndication webhook.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sven
2026-03-31 13:21:41 +02:00
parent 9cbf574b15
commit 3f63e84cd6

View File

@@ -17,9 +17,9 @@ jobs:
mkdir -p ~/.ssh
printf '%s\n' "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
ssh-keyscan -p ${{ secrets.SSH_PORT }} 10.100.0.1 >> ~/.ssh/known_hosts 2>/dev/null
ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << SSHEOF
ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@10.100.0.1 << SSHEOF
set -eu
restart_log=/tmp/indiekit-restart.log