Use container workdir_parent for shared job workspace

This commit is contained in:
agentbox committed 2026-11-05 16:34:35 +00:00
1 parent e769c3df3a
commit 37ef3994ed
2 files changed
+5 -5

No files matched your search

+1 -3
View File
@@ -284,9 +284,7 @@ Runner config:
```yaml ```yaml
container: container:
bind_workdir: true bind_workdir: true
workdir_parent: workspace
host:
workdir_parent: /workspace
``` ```
With this, the job workspace is under `/workspace/...` on the runner, the same With this, the job workspace is under `/workspace/...` on the runner, the same
+4 -2
View File
@@ -26,8 +26,10 @@ container:
# Use a host path for the workspace instead of an anonymous Docker volume, # Use a host path for the workspace instead of an anonymous Docker volume,
# so Docker bind mounts from inside the job also resolve in dind. # so Docker bind mounts from inside the job also resolve in dind.
bind_workdir: true bind_workdir: true
# Parent path on the runner; it is the shared ci-workspace volume mounted at
# /workspace in both runner and dind. Leading '/' is added automatically.
workdir_parent: workspace
force_pull: false force_pull: false
host: host:
# Must be the same path mounted into dind as /workspace. workdir_parent:
workdir_parent: /workspace