bazel: Add remote cache config

Bug: 312215590
Change-Id: Ibf6ecef73f0a91e32e2dd9ef52c914112dd8e933
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/213773
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/.bazelrc b/.bazelrc
index f91efab..01f25c7 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -21,3 +21,9 @@
 
 # Required for new toolchain resolution API.
 build --incompatible_enable_cc_toolchain_resolution
+
+# Use the remote cache. This will only work for users who have permission to access it.
+common:remote_cache --remote_cache=grpcs://remotebuildexecution.googleapis.com
+common:remote_cache --google_default_credentials=true
+common:remote_cache --remote_instance_name=projects/pigweed-rbe-open/instances/default-instance
+common:remote_cache --remote_upload_local_results=false