cicd: use workflow container volumes/options + runner valid_volumes
CI/CD Deploy (Admin) / 构建后端镜像并部署 (push) Failing after 0s

This commit is contained in:
2026-08-26 14:14:56 +08:00
parent 3aa5f81162
commit 064932f04a
+5 -2
View File
@@ -25,8 +25,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: docker:24.0-cli image: docker:24.0-cli
# 注意:docker.sock 与 /opt/freedom 挂载由 runner-config.toml 提供, # 挂载与 host 解析:runner-config 的 valid_volumes 白名单 + workflow 级 volumes/options
# 不要在 options 中重复添加(act_runner v0.6.1 不合并 workflow 的 bind mount) volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/freedom:/opt/freedom
options: --add-host=host.docker.internal:host-gateway
steps: steps:
- name: 安装 git - name: 安装 git
run: apk add --no-cache git run: apk add --no-cache git