fix: workflow 绉婚櫎 container options锛屾寕杞界敱 runner 閰嶇疆鎻愪緵
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Failing after 10m25s
CI/CD Deploy (Web) / 构建前端镜像并部署 (push) Failing after 10m25s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user