Use per-day gvisor-buildkite-bazel-cache.

PiperOrigin-RevId: 635516664
This commit is contained in:
Ayush Ranjan
2024-05-20 11:28:42 -07:00
committed by gVisor bot
parent 032b103ec7
commit f9d4d51c7e
+2 -1
View File
@@ -1,6 +1,7 @@
set -euo pipefail
export BAZEL_REMOTE_CACHE="--remote_cache=https://storage.googleapis.com/gvisor-buildkite-bazel-cache --google_default_credentials"
# Use a per-day bazel remote cache.
export BAZEL_REMOTE_CACHE="--remote_cache=https://storage.googleapis.com/gvisor-buildkite-bazel-cache/$(date +%Y-%m-%d) --google_default_credentials"
if POSIXLY_CORRECT=true df --local --output=pcent,ipcent,target | grep -vE '/snap/' | grep -qE '9[4-9]%|100%'; then
echo "Disk usage has reached critical level, node is bad." >&2