dockerfile
Some checks failed
全局K3s部署 / deploy (push) Failing after 31s

This commit is contained in:
2026-05-23 18:01:03 +08:00
parent 3bf2732906
commit 6db7f5ed8c

View File

@@ -13,12 +13,12 @@ jobs:
# 补充若后续要推送镜像需替换为实际镜像仓库地址比如你的Gitea镜像仓库 # 补充若后续要推送镜像需替换为实际镜像仓库地址比如你的Gitea镜像仓库
REGISTRY: 116.204.74.41:3000/red-future REGISTRY: 116.204.74.41:3000/red-future
steps: steps:
# 新增:网络加速,解决git克隆慢的问题 # ========== 核心新增国内Git代理彻底解决GitHub拉取慢 ==========
- name: 配置网络加速 - name: 配置国内GitHub代理加速
run: | run: |
# 配置git代理,加速GitHub资源拉取 # 全局Git代理:所有GitHub请求走国内镜像站
git config --global url."https://ghproxy.com/https://github.com/".insteadOf "https://github.com/" git config --global url."https://ghproxy.com/https://github.com/".insteadOf "https://github.com/"
# 替换apt源,加速依赖安装 # 可选替换Ubuntu源为清华源,加速依赖安装
sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
apt update -y apt update -y
# ========== 核心修改替换checkout源避开GitHub ========== # ========== 核心修改替换checkout源避开GitHub ==========