[BCID] Build using RBE in Louhi
I'm not sure why this didn't make it over from the other repo.
Change-Id: I5088d08cf6933326cf84f5f6374b993a3cbdc096
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/582819
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Auto-Submit: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
diff --git a/cd/bin/build-image-bazel.sh b/cd/bin/build-image-bazel.sh
index 0d6305c..5f3857b 100755
--- a/cd/bin/build-image-bazel.sh
+++ b/cd/bin/build-image-bazel.sh
@@ -9,7 +9,7 @@
_IMAGE_PATH=$5
pushd ${_WORKSPACE_DIR}/${_CHECKOUT_DIR}
-bazelisk run //${_BAZEL_PACKAGE}:${_BAZEL_TARGET}
+bazelisk run --config=remote --google_default_credentials //${_BAZEL_PACKAGE}:${_BAZEL_TARGET}
image_tag="${_IMAGE_PATH}:$(USER="louhi" ${_WORKSPACE_DIR}/${_CHECKOUT_DIR}/bash/release_tag.sh)"
echo "$image_tag" > ${_WORKSPACE_DIR}/${_BAZEL_TARGET}.tag
docker tag bazel/${_BAZEL_PACKAGE}:${_BAZEL_TARGET} louhi_ws/$image_tag
\ No newline at end of file