chore(ci): use internal gitea docker networking alias for checkout
Release / Build & Release (push) Failing after 1m5s

This commit is contained in:
2026-07-03 17:56:10 +08:00
parent 5e5d0c8ecf
commit da5c319a5b
+5 -5
View File
@@ -20,15 +20,15 @@ jobs:
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }} ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
- name: Install tools - name: Install tools
run: apt-get update -qq && apt-get install -y -qq docker.io curl unzip run: apt-get update -qq && apt-get install -y -qq curl unzip
- name: Connect job container to gitea_default network
run: docker network connect gitea_default $(hostname)
- name: Add Gitea SSH Host Key - name: Add Gitea SSH Host Key
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
ssh-keyscan -p 222 thunderobot >> ~/.ssh/known_hosts || true 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
chmod 600 ~/.ssh/config
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4