Skip to content

Commit 29b838c

Browse files
gkalpakIgorMinar
authored andcommitted
ci: define common env vars in CircleCI job (angular#22810)
PR Close angular#22810
1 parent 328b48b commit 29b838c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.circleci/config.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
var_1: &docker_image angular/ngcontainer:0.2.0
1616
var_2: &cache_key v2-angular-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.2.0
1717

18+
# Define common ENV vars
19+
var_3: &define_env_vars
20+
run: echo "export PROJECT_ROOT=$(pwd)" >> $BASH_ENV
21+
1822
# See remote cache documentation in /docs/BAZEL.md
19-
var_3: &setup-bazel-remote-cache
23+
var_4: &setup-bazel-remote-cache
2024
run:
2125
name: Start up bazel remote cache proxy
2226
command: ~/bazel-remote-proxy -backend circleci://
@@ -63,6 +67,7 @@ jobs:
6367
<<: *job_defaults
6468
resource_class: xlarge
6569
steps:
70+
- *define_env_vars
6671
- checkout:
6772
<<: *post_checkout
6873
# See remote cache documentation in /docs/BAZEL.md

0 commit comments

Comments
 (0)