From d6daed62b8edc751320e0f47a5e77fac12febc17 Mon Sep 17 00:00:00 2001 From: adtpdn Date: Fri, 3 Jul 2026 18:14:05 +0800 Subject: [PATCH] chore(ci): use proper gitea act_runner network config to resolve gitea internally --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 227353f..14f65d1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,11 +25,11 @@ jobs: - name: Add Gitea SSH Host Key run: | mkdir -p ~/.ssh - ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true + ssh-keyscan -p 22 gitea >> ~/.ssh/known_hosts || true # Route all possible hostnames Gitea might hand out via API back to the internal docker port 22 - 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 - printf "Host thunderobot.tail5d6e8e.ts.net\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config + printf "Host gitea\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config + printf "Host thunderobot\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config + printf "Host thunderobot.tail5d6e8e.ts.net\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config # Force checkout to rewrite port 222 down to 22 git config --global url."ssh://git@gitea/".insteadOf "ssh://git@gitea:222/"