Archived
forked from admin/userbase
ci: mount /data/www/userbase via runner options (valid_volumes precise bind)
This commit is contained in:
@@ -11,11 +11,9 @@ jobs:
|
|||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# node:20 自带 npm 与 git;通过已配置的 registry-mirrors 拉取
|
# node:20 自带 npm 与 git;通过已配置的 registry-mirrors 拉取
|
||||||
|
# /data/www/userbase 与 docker.sock 由 act_runner 全局 options 统一挂载(见 act-runner config)
|
||||||
container:
|
container:
|
||||||
image: node:20
|
image: node:20
|
||||||
# 显式把宿主静态目录挂进 job 容器;act_runner 的 valid_volumes 必须包含完整 bind 字符串才会放行
|
|
||||||
volumes:
|
|
||||||
- /data/www/userbase:/data/www/userbase
|
|
||||||
steps:
|
steps:
|
||||||
# 内网 Gitea 无法访问 github.com 拉取 actions/checkout,改为直接 clone 本仓库
|
# 内网 Gitea 无法访问 github.com 拉取 actions/checkout,改为直接 clone 本仓库
|
||||||
- name: Checkout (manual, internal Gitea)
|
- name: Checkout (manual, internal Gitea)
|
||||||
|
|||||||
Reference in New Issue
Block a user