From 147a25614f5f5adfab3442172901ce95d4e56d41 Mon Sep 17 00:00:00 2001 From: xiaoquan <838115837@qq.com> Date: Wed, 10 Jun 2026 19:02:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E5=8C=85=E5=90=AB=20D?= =?UTF-8?q?ocker=20=E7=9A=84=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 修改内容 - 添加 container 配置 - 使用 catthehacker/ubuntu:act-latest 镜像 - 该镜像预装了 docker、docker-compose 等工具 ## 优点 - 不需要在 Runner 容器中安装工具 - 使用标准的 GitHub Actions 兼容镜像 - 更稳定可靠 Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e70cd9f..09c8fb7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -12,6 +12,9 @@ env: jobs: deploy: runs-on: [self-hosted, rent-deploy] + container: + image: catthehacker/ubuntu:act-latest + options: --privileged -v /var/run/docker.sock:/var/run/docker.sock steps: - name: Clone or update code run: |