From 30531ce8839a0de48184706c6b19f1ce521c5159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=B6=E8=AE=AD?= Date: Wed, 26 Aug 2026 11:40:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20workflow=20=E7=BB=89=E5=A9=9A=E6=AB=8E?= =?UTF-8?q?=20container=20options=E9=94=9B=E5=B1=BE=E5=AF=95=E6=9D=9E?= =?UTF-8?q?=E7=95=8C=E6=95=B1=20runner=20=E9=96=B0=E5=B6=87=E7=96=86?= =?UTF-8?q?=E9=8E=BB=E6=84=AA=E7=B7=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f208fe9..85e82b9 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -4,12 +4,11 @@ # # 环境(同 freedom-admin,见其 workflow 注释): # - runner labels: ubuntu-latest -# - job 容器自动挂载 /var/run/docker.sock,可通过 host.docker.internal 访问宿主机 +# - job 容器挂载 /var/run/docker.sock 与 /opt/freedom(由 runner-config.toml 的 volumes 提供) # - 部署目录:/opt/freedom/deploy # # 前置条件(管理员一次性完成): # - 宿主 /opt/freedom/deploy/docker-compose.yml 与 .env 已就位 -# - 宿主 /opt/freedom/deploy/.env 含 DB_URL / DB_USERNAME / DB_PASSWORD # (web 服务本身不需要数据库,但 compose 文件解析 backend 服务时需要) # ============================================================= name: CI/CD Deploy (Web) @@ -26,7 +25,8 @@ jobs: runs-on: ubuntu-latest container: image: docker:24.0-cli - options: -v /opt/freedom:/opt/freedom + # 注意:docker.sock 与 /opt/freedom 挂载由 runner-config.toml 提供, + # 不要在 options 中重复添加(act_runner v0.6.1 不合并 workflow 的 bind mount) steps: - name: 安装 git run: apk add --no-cache git