File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ version: 2.1
1111
1212orbs :
1313 browser-tools : circleci/browser-tools@1.1.3
14+ devinfra : angular/dev-infra@1.0.8
1415
1516# Variables
1617
@@ -95,26 +96,8 @@ commands:
9596 type : env_var_name
9697 default : CIRCLE_PROJECT_REPONAME
9798 steps :
98- - run :
99- name : ' Setup bazel RBE remote execution'
100- command : |
101- touch .bazelrc.user;
102- # We need ensure that the same default digest is used for encoding and decoding
103- # with openssl. Openssl versions might have different default digests which can
104- # cause decryption failures based on the openssl version. https://stackoverflow.com/a/39641378/4317734
105- openssl aes-256-cbc -d -in .circleci/gcp_token -md md5 -k "${<< parameters.key >>}" -out /home/circleci/.gcp_credentials;
106- sudo bash -c "echo -e 'build --google_credentials=/home/circleci/.gcp_credentials' >> .bazelrc.user";
107- # Upload/don't upload local results to cache based on environment
108- if [[ -n "{$CIRCLE_PULL_REQUEST}" ]]; then
109- sudo bash -c "echo -e 'build:remote --remote_upload_local_results=false\n' >> .bazelrc.user";
110- echo "Not uploading local build results to remote cache.";
111- else
112- sudo bash -c "echo -e 'build:remote --remote_upload_local_results=true\n' >> .bazelrc.user";
113- echo "Uploading local build results to remote cache.";
114- fi
115- # Enable remote builds
116- sudo bash -c "echo -e 'build --config=remote' >> .bazelrc.user";
117- echo "Reading from remote cache for bazel remote jobs.";
99+ - devinfra/setup-bazel-remote-exec :
100+ bazelrc : ./.bazelrc.user
118101
119102 install_python :
120103 steps :
You can’t perform that action at this time.
0 commit comments