From 4b941c0888617666065cd63cbae19092c4a891b8 Mon Sep 17 00:00:00 2001 From: TJWater CI Date: Tue, 11 Aug 2026 10:01:21 +0800 Subject: [PATCH] fix(ci): bypass proxy for runner checkout --- .gitea/workflows/container-cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/container-cd.yml b/.gitea/workflows/container-cd.yml index 5408cd5..61e32a7 100644 --- a/.gitea/workflows/container-cd.yml +++ b/.gitea/workflows/container-cd.yml @@ -53,7 +53,11 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Configure Git transport - run: git config --global http.version HTTP/1.1 + run: | + git config --global http.version HTTP/1.1 + # Runner 与 Gitea 同处内网。绕过公网 Nginx 的 Git pack 转发,避免 + # 大仓库检出时 TLS 流被中断;对外访问仍使用 ROOT_URL。 + git config --global url."http://192.168.1.112:3333/".insteadOf "https://gitea.waternetwork.cn/" - uses: https://gitea.waternetwork.cn/actions/checkout@v4 with: fetch-depth: 1