From af1f27e756f439cf85293bf614fa728909a0c0a4 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 2 Oct 2019 10:36:25 -0700 Subject: [PATCH] build: set up remote http caching flag (#32983) PR Close #32983 --- .bazelrc | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.bazelrc b/.bazelrc index d47a85d739..28d90bc13c 100644 --- a/.bazelrc +++ b/.bazelrc @@ -71,11 +71,25 @@ test --test_output=errors # any bazel target. This is a temporary flag until codebase is permanently switched to Ivy. build --define=compile=legacy -############################### -# Remote Build Execution support -# Turn on these settings with -# --config=remote -############################### +####################### +# Remote HTTP Caching # +####################### +build --remote_http_cache=https://storage.googleapis.com/angular-team-cache +build --remote_accept_cached=true +build --remote_upload_local_results=false + +###################################### +# Remote HTTP Caching writes support # +# Turn on these settings with # +# --config=-http-caching # +###################################### +build:remote-http-caching --remote_upload_local_results=true + +################################## +# Remote Build Execution support # +# Turn on these settings with # +# --config=remote # +################################## # Load default settings for Remote Build Execution. import %workspace%/third_party/github.com/bazelbuild/bazel-toolchains/bazelrc/.bazelrc.notoolchain