Skip to content

Commit

Permalink
ci: update to latest version of dev-infra orb
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott authored and alan-agius4 committed Mar 15, 2023
1 parent bc78fcd commit d8ba154
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.1.3
devinfra: angular/dev-infra@1.0.8

# Variables

Expand Down Expand Up @@ -95,26 +96,8 @@ commands:
type: env_var_name
default: CIRCLE_PROJECT_REPONAME
steps:
- run:
name: 'Setup bazel RBE remote execution'
command: |
touch .bazelrc.user;
# We need ensure that the same default digest is used for encoding and decoding
# with openssl. Openssl versions might have different default digests which can
# cause decryption failures based on the openssl version. https://stackoverflow.com/a/39641378/4317734
openssl aes-256-cbc -d -in .circleci/gcp_token -md md5 -k "${<< parameters.key >>}" -out /home/circleci/.gcp_credentials;
sudo bash -c "echo -e 'build --google_credentials=/home/circleci/.gcp_credentials' >> .bazelrc.user";
# Upload/don't upload local results to cache based on environment
if [[ -n "{$CIRCLE_PULL_REQUEST}" ]]; then
sudo bash -c "echo -e 'build:remote --remote_upload_local_results=false\n' >> .bazelrc.user";
echo "Not uploading local build results to remote cache.";
else
sudo bash -c "echo -e 'build:remote --remote_upload_local_results=true\n' >> .bazelrc.user";
echo "Uploading local build results to remote cache.";
fi
# Enable remote builds
sudo bash -c "echo -e 'build --config=remote' >> .bazelrc.user";
echo "Reading from remote cache for bazel remote jobs.";
- devinfra/setup-bazel-remote-exec:
bazelrc: ./.bazelrc.user

install_python:
steps:
Expand Down

0 comments on commit d8ba154

Please sign in to comment.