chore(ci): alias both gitea and thunderobot directly to IP
Release / Build & Release (push) Failing after 7m27s

This commit is contained in:
2026-07-03 18:01:36 +08:00
parent da5c319a5b
commit ab3ffbbec8
+4 -3
View File
@@ -25,9 +25,10 @@ jobs:
- name: Add Gitea SSH Host Key - name: Add Gitea SSH Host Key
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
ssh-keyscan -p 22 gitea >> ~/.ssh/known_hosts || true ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true
# We alias thunderobot to the internal gitea docker name so checkout action works # Direct IP routing avoids dns completely
printf "Host thunderobot\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config printf "Host gitea\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config
printf "Host thunderobot\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
chmod 600 ~/.ssh/config chmod 600 ~/.ssh/config
- name: Checkout Code - name: Checkout Code