From 6e6bdde96e73b5989209f00bf529d750609ade50 Mon Sep 17 00:00:00 2001 From: hu xiaotong <416314413@163.com> Date: Thu, 26 Jun 2025 16:03:59 +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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e40e154..ab64a41 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -171,6 +171,16 @@ jobs: - name: 重启 Docker 容器 run: | echo "♻️ 重启 epic-go 容器..." + # 自动安装 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 + apk add --no-cache docker-cli + elif command -v yum &> /dev/null; then + yum install -y docker + fi docker ps -a docker restart epic-go echo "✅ epic-go 容器已重启" \ No newline at end of file