fix(ci): moved bazel repo cache mount outside the runner home

kubelet creates missing subPath mountpoint parents as root, so mounting
the PVC repository cache under ~/.cache left the directory root-owned
and broke both bazel's default output root and zig's wrapper cache
compile (AccessDenied). The mount now lives at /opt/bazel-repo-cache.
This commit is contained in:
can1357
2026-07-27 12:27:31 +02:00
parent 2092f9330c
commit 02c50eb6f3
2 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -194,8 +194,11 @@ template:
# Shared Bazel repository cache: pods are ephemeral, so without it
# every job re-downloads toolchains and crate archives. Content-
# addressed and written atomically, safe to share across pods.
# Deliberately OUTSIDE $HOME: kubelet creates missing mountpoint
# parents root-owned, and a root-owned ~/.cache breaks bazel's
# default output root and zig's wrapper cache.
- name: runner-cache
mountPath: /home/runner/.cache/omp-bazel-repo
mountPath: /opt/bazel-repo-cache
subPath: bazel-repo-cache
resources:
requests: