diff --git a/README.md b/README.md index 9bbabd5..bfc3d73 100644 --- a/README.md +++ b/README.md @@ -284,9 +284,7 @@ Runner config: ```yaml container: bind_workdir: true - -host: - workdir_parent: /workspace + workdir_parent: workspace ``` With this, the job workspace is under `/workspace/...` on the runner, the same diff --git a/runner/config.yaml b/runner/config.yaml index b1293f6..2fc0678 100644 --- a/runner/config.yaml +++ b/runner/config.yaml @@ -26,8 +26,10 @@ container: # 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. 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 host: - # Must be the same path mounted into dind as /workspace. - workdir_parent: /workspace + workdir_parent: