Use container workdir_parent for shared job workspace
This commit is contained in:
1 parent
e769c3df3a
commit
37ef3994ed
2 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
+4
-2
@@ -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:
|
||||
Reference in new issue
Block a user