From 3bf273290673f7690beadebfb5f4b63384309c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Sat, 23 May 2026 17:57:59 +0800 Subject: [PATCH] dockerfile --- .gitea/workflows/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e06ff44..d72fda6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,6 +13,14 @@ jobs: # 补充:若后续要推送镜像,需替换为实际镜像仓库地址(比如你的Gitea镜像仓库) REGISTRY: 116.204.74.41:3000/red-future steps: + # 新增:网络加速,解决git克隆慢的问题 + - name: 配置网络加速 + run: | + # 配置git代理,加速GitHub资源拉取 + git config --global url."https://ghproxy.com/https://github.com/".insteadOf "https://github.com/" + # 替换apt源,加速依赖安装 + sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list + apt update -y # ========== 核心修改:替换checkout源,避开GitHub ========== - name: 拉取代码(Gitea官方源) uses: gitea/actions/checkout@v4