SHA256
fix(ci): whitelist deploy bind mounts in runner valid_volumes
deploy / deploy (push) Failing after 2s
deploy / deploy (push) Failing after 2s
act_runner drops any volume not listed in container.valid_volumes, so the options --volume flags for the deploy clone and docker CLI were ignored and the job failed at 'cd /home/ymy/deploy/tjhlp-gitea'.
This commit is contained in:
@@ -29,6 +29,14 @@ container:
|
||||
--volume /home/ymy/deploy:/home/ymy/deploy
|
||||
--volume /usr/bin/docker:/usr/bin/docker:ro
|
||||
--volume /usr/libexec/docker/cli-plugins:/usr/libexec/docker/cli-plugins:ro
|
||||
# ★ options 里的 --volume 也会过这道白名单: 不在 valid_volumes 里的卷会被
|
||||
# "[xxx] is not a valid volume, will be ignored" 丢弃。漏配时 job 容器里
|
||||
# 看不到 /home/ymy/deploy, 第一步 `cd /home/ymy/deploy/tjhlp-gitea` 就失败
|
||||
# (2026-09-21 实际踩到)。
|
||||
valid_volumes:
|
||||
- /home/ymy/deploy
|
||||
- /usr/bin/docker
|
||||
- /usr/libexec/docker/cli-plugins
|
||||
force_pull: false # 镜像本地已有就不再拉
|
||||
|
||||
cache:
|
||||
|
||||
Reference in New Issue
Block a user