treewide: configure CI to use disk cache
Change-Id: I89b09a6190fb62452314606b831ff5a7872a1d28
Reviewed-on: https://review.monogon.dev/c/monogon/+/3754
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/.bazelrc.ci b/.bazelrc.ci
index 40bb3dd..cc22fe8 100644
--- a/.bazelrc.ci
+++ b/.bazelrc.ci
@@ -8,3 +8,8 @@
# cache for builds, we will only populate it from a builder that runs against
# all merged main commits.
build --noremote_upload_local_results
+
+# Setup a disk cache with a maximum size of 150Gi. We currently have our PVs
+# set to 200Gi, which is more than enough.
+build --disk_cache=~/.cache/bazel-monogon/
+build --experimental_disk_cache_gc_max_size=150G
\ No newline at end of file