cicd: use workflow container volumes/options + runner valid_volumes
CI/CD Deploy (Admin) / 构建后端镜像并部署 (push) Failing after 0s
CI/CD Deploy (Admin) / 构建后端镜像并部署 (push) Failing after 0s
This commit is contained in:
@@ -25,8 +25,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker:24.0-cli
|
||||
# 注意:docker.sock 与 /opt/freedom 挂载由 runner-config.toml 提供,
|
||||
# 不要在 options 中重复添加(act_runner v0.6.1 不合并 workflow 的 bind mount)
|
||||
# 挂载与 host 解析:runner-config 的 valid_volumes 白名单 + workflow 级 volumes/options
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /opt/freedom:/opt/freedom
|
||||
options: --add-host=host.docker.internal:host-gateway
|
||||
steps:
|
||||
- name: 安装 git
|
||||
run: apk add --no-cache git
|
||||
|
||||
Reference in New Issue
Block a user