File tree 1 file changed +3
-20
lines changed
1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ version: 2.1
11
11
12
12
orbs :
13
13
browser-tools :
circleci/[email protected]
14
+ devinfra :
angular/[email protected]
14
15
15
16
# Variables
16
17
@@ -95,26 +96,8 @@ commands:
95
96
type : env_var_name
96
97
default : CIRCLE_PROJECT_REPONAME
97
98
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
118
101
119
102
install_python :
120
103
steps :
You can’t perform that action at this time.
0 commit comments