fix(ci): 加 jobs.build.container 显式声明 image + volumes
act_runner v0.4.1 的全局 container.options 不 honor,改走 jobs.<name>.container.volumes 这条官方路径,配合 nas-infra gitea-runner config 的 valid_volumes 白名单。
This commit is contained in:
@@ -21,6 +21,16 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# 显式声明 job 容器:
|
||||||
|
# - image: 跟 GITEA_RUNNER_LABELS 里 ubuntu-latest 映射的镜像保持一致
|
||||||
|
# - volumes: 把 NAS 静态目录挂进 job 容器(需要 act_runner config.yaml 的
|
||||||
|
# valid_volumes 白名单允许该 host 路径)
|
||||||
|
# 这是 act_runner v0.4.1 让 host 路径进 job 容器的官方路径——
|
||||||
|
# 全局 container.options 字段在该版本被忽略,实测无效。
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
volumes:
|
||||||
|
- /volume1/docker/blog/public:/blog-public:rw
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (with submodules)
|
- name: Checkout (with submodules)
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user