From ab3ffbbec8b9b91e20f5ca05af5474ee4f8b2cfc Mon Sep 17 00:00:00 2001 From: adtpdn Date: Fri, 3 Jul 2026 18:01:36 +0800 Subject: [PATCH] chore(ci): alias both gitea and thunderobot directly to IP --- .gitea/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 797684e..bbce4c0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,9 +25,10 @@ jobs: - name: Add Gitea SSH Host Key run: | mkdir -p ~/.ssh - ssh-keyscan -p 22 gitea >> ~/.ssh/known_hosts || true - # We alias thunderobot to the internal gitea docker name so checkout action works - printf "Host thunderobot\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config + ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true + # Direct IP routing avoids dns completely + 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 - name: Checkout Code