From d8ba15467bb5540e3872d1f251fa792bac784aab Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 15 Mar 2023 15:55:28 +0000 Subject: [PATCH] ci: update to latest version of dev-infra orb --- .circleci/config.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 031a97b31df5..e1889aa27ce9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,7 @@ version: 2.1 orbs: browser-tools: circleci/browser-tools@1.1.3 + devinfra: angular/dev-infra@1.0.8 # Variables @@ -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: