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

This commit is contained in:
2026-05-23 17:57:59 +08:00
parent a48924d27c
commit 3bf2732906

View File

@@ -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