Skip to content

Commit 1ab2dff

Browse files
devversionalan-agius4
authored andcommitted
build: setup remote execution through shared command
Sets up remote execution through a shared org-wide command.
1 parent 45e3942 commit 1ab2dff

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.circleci/dynamic_config.yml

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

1212
orbs:
1313
browser-tools: circleci/[email protected]
14-
devinfra: angular/[email protected].2
14+
devinfra: angular/[email protected].7
1515

1616
parameters:
1717
snapshot_changed:
@@ -136,18 +136,8 @@ commands:
136136
type: env_var_name
137137
default: CIRCLE_PROJECT_REPONAME
138138
steps:
139-
- run:
140-
name: 'Setup bazel RBE remote execution'
141-
command: |
142-
touch .bazelrc.user;
143-
# We need ensure that the same default digest is used for encoding and decoding
144-
# with openssl. Openssl versions might have different default digests which can
145-
# cause decryption failures based on the openssl version. https://stackoverflow.com/a/39641378/4317734
146-
openssl aes-256-cbc -d -in .circleci/gcp_token -md md5 -k "${<< parameters.key >>}" -out /home/circleci/.gcp_credentials;
147-
sudo bash -c "echo -e 'build --google_credentials=/home/circleci/.gcp_credentials' >> .bazelrc.user";
148-
# Enable remote builds
149-
sudo bash -c "echo -e 'build --config=remote' >> .bazelrc.user";
150-
echo "Reading from remote cache for bazel remote jobs.";
139+
- devinfra/setup-bazel-remote-exec:
140+
bazelrc: ./.bazelrc.user
151141

152142
install_python:
153143
steps:

.circleci/gcp_token

-2.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)