Skip to content

Commit fad0c1b

Browse files
authored
Use remote caching for Cloud Build with Bazel (#1134)
* Use remote caching for Cloud Build with Bazel Signed-off-by: Justin King <[email protected]> * Also bump machineType to E2_HIGHCPU_32 Signed-off-by: Justin King <[email protected]> --------- Signed-off-by: Justin King <[email protected]>
1 parent 45c4980 commit fad0c1b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cloudbuild.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ steps:
2626
args: ['scripts/verify-vendor.sh']
2727
- name: 'gcr.io/cloud-builders/bazel'
2828
entrypoint: bazel
29-
args: ['test', '--test_output=errors', '...']
29+
args:
30+
- 'test'
31+
- '--test_output=errors'
32+
- '--remote_cache=https://storage.googleapis.com/cel-go-remote-cache'
33+
- '--google_default_credentials'
34+
- '...'
3035
id: bazel-test
3136
waitFor: ['-']
3237
timeout: 10m
3338
options:
34-
machineType: 'N1_HIGHCPU_8'
39+
machineType: 'E2_HIGHCPU_32'

0 commit comments

Comments
 (0)