ci: fetch via public hostname — job network cannot resolve internal gitea
All checks were successful
CI / check (push) Successful in 45s
All checks were successful
CI / check (push) Successful in 45s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,9 +11,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq && apt-get install -y -qq git >/dev/null
|
apt-get update -qq && apt-get install -y -qq git >/dev/null
|
||||||
# Token-authenticated fetch so CI works on private repos too; internal
|
# Token-authenticated fetch so CI also works if the repo goes private.
|
||||||
# gitea:3000 host avoids the proxy round-trip.
|
# Public hostname: job containers get their own network and cannot
|
||||||
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
|
# 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 install --frozen-lockfile
|
||||||
- run: bun run typecheck
|
- run: bun run typecheck
|
||||||
- run: bun run build:web
|
- run: bun run build:web
|
||||||
|
|||||||
Reference in New Issue
Block a user