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