Share workspace path between runner and dind for job bind mounts

This commit is contained in:
agentbox committed 2026-11-05 16:34:21 +00:00
1 parent 239a3b2057
commit e769c3df3a
3 files changed
+56 -1

No files matched your search

+7
View File
@@ -6,6 +6,9 @@ networks:
ci:
driver: bridge
volumes:
ci-workspace:
services:
gitea:
image: docker.gitea.com/gitea
@@ -35,6 +38,7 @@ services:
- ALL
volumes:
- ./dind-data:/var/lib/docker
- ci-workspace:/workspace
- ./dind-runsc/resolv.conf:/etc/resolv.conf:ro
# Use the disk-backed dind-data volume with Docker 29's containerd
# snapshotter, which supports file-capability xattrs.
@@ -56,3 +60,6 @@ services:
GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-}
volumes:
- ./runner:/data
# Same path as dind so workflow bind mounts like -v "$repo_dir:/app"
# resolve on the dind daemon too.
- ci-workspace:/workspace