From 645de6f77f1d95c748ecc82754cdc998281507db Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Mon, 9 May 2022 17:29:11 -0400 Subject: [PATCH] Use service account from vault --- .buildkite/scripts/steps/bazel_cache/bootstrap_mac.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.buildkite/scripts/steps/bazel_cache/bootstrap_mac.sh b/.buildkite/scripts/steps/bazel_cache/bootstrap_mac.sh index 359ac661b4007..2094e211c9e6b 100755 --- a/.buildkite/scripts/steps/bazel_cache/bootstrap_mac.sh +++ b/.buildkite/scripts/steps/bazel_cache/bootstrap_mac.sh @@ -5,6 +5,10 @@ set -euo pipefail export BAZEL_CACHE_MODE=populate-local-gcs export DISABLE_BOOTSTRAP_VALIDATION=true +retry 5 5 vault read -field=service_account_json secret/kibana-issues/dev/kibana-ci-bazel-remote-cache-local-dev > target/kibana-ci-bazel-remote-cache-local-dev.json +GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/target/kibana-ci-bazel-remote-cache-local-dev.json +export GOOGLE_APPLICATION_CREDENTIALS + # Clear out bazel cache between runs to make sure that any artifacts that don't exist in the cache are uploaded rm -rf ~/.bazel-cache