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