fix(ci): 加 jobs.build.container 显式声明 image + volumes
Build and Deploy Blog / build (push) Failing after 11m26s

act_runner v0.4.1 的全局 container.options 不 honor,改走
jobs.<name>.container.volumes 这条官方路径,配合 nas-infra
gitea-runner config 的 valid_volumes 白名单。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-03 16:29:45 +08:00
parent 40a38c8c14
commit 77e588d99a
+10
View File
@@ -21,6 +21,16 @@ concurrency:
jobs:
build:
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:
- name: Checkout (with submodules)
uses: actions/checkout@v4