From bd00e80b44b63d870182f87c307d65b5804d4599 Mon Sep 17 00:00:00 2001 From: marcuspaico Date: Mon, 17 Aug 2026 15:02:29 -0700 Subject: [PATCH] =?UTF-8?q?ci:=20fetch=20via=20public=20hostname=20?= =?UTF-8?q?=E2=80=94=20job=20network=20cannot=20resolve=20internal=20gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- .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 d1f74fd..ec09bbb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,9 +11,10 @@ jobs: - name: Checkout run: | apt-get update -qq && apt-get install -y -qq git >/dev/null - # Token-authenticated fetch so CI works on private repos too; internal - # gitea:3000 host avoids the proxy round-trip. - git init -q . && git fetch -q --depth 1 "http://x:${{ secrets.GITHUB_TOKEN }}@gitea:3000/${{ github.repository }}.git" "${{ github.sha }}" && git checkout -q FETCH_HEAD + # Token-authenticated fetch so CI also works if the repo goes private. + # Public hostname: job containers get their own network and cannot + # resolve the internal `gitea` service name. + git init -q . && git fetch -q --depth 1 "https://x:${{ secrets.GITHUB_TOKEN }}@git.rehbock.xyz/${{ github.repository }}.git" "${{ github.sha }}" && git checkout -q FETCH_HEAD - run: bun install --frozen-lockfile - run: bun run typecheck - run: bun run build:web