From a223a2ca416db9ed124b1aec8f2ddd111891bbdd Mon Sep 17 00:00:00 2001 From: hu xiaotong <416314413@163.com> Date: Thu, 26 Jun 2025 16:10:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20Gitea=20Actions=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 ci.yaml 文件,定义 Gitea Actions 示例 --- .gitea/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index ab64a41..cc838b4 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -171,12 +171,15 @@ jobs: - name: 重启 Docker 容器 run: | echo "♻️ 重启 epic-go 容器..." - # 自动安装 docker CLI + # 自动安装 docker CLI,优先用国内源 if command -v docker &> /dev/null; then echo "docker 已安装: $(docker --version)" elif command -v apt-get &> /dev/null; then apt-get update && apt-get install -y docker.io elif command -v apk &> /dev/null; then + echo "http://mirrors.aliyun.com/alpine/v3.20/main" > /etc/apk/repositories + echo "http://mirrors.aliyun.com/alpine/v3.20/community" >> /etc/apk/repositories + apk update apk add --no-cache docker-cli elif command -v yum &> /dev/null; then yum install -y docker