Skip to content

Commit d8ba154

Browse files
josephperrottalan-agius4
authored andcommitted
ci: update to latest version of dev-infra orb
1 parent bc78fcd commit d8ba154

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.circleci/config.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ version: 2.1
1111

1212
orbs:
1313
browser-tools: circleci/[email protected]
14+
devinfra: angular/[email protected]
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:

0 commit comments

Comments
 (0)