forked from bazelbuild/bazel-toolchains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
47 lines (43 loc) · 1.67 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Generate Bazel C++ & Java toolchain configs for the latest available Bazel version & Ubuntu 16.04
# based RBE toolchain container (l.gcr.io/google/rbe-ubuntu16-04:latest) and upload the generated
# configs to GCS.
steps:
# Build the RBE Config generator & uploader using Go 1.15.
- name: golang:1.15
args:
- go
- build
- -o
- rbe_configs_gen
- github.com/bazelbuild/bazel-toolchains/cmd/rbe_configs_gen
- name: golang:1.15
args:
- go
- build
- -o
- rbe_configs_upload
- github.com/bazelbuild/bazel-toolchains/cmd/rbe_configs_upload
# Run the configs generator in the GCB docker builder because the config generator will launch a
# docker container to generate C++ configs.
- name: gcr.io/cloud-builders/docker
entrypoint: ./rbe_configs_gen
# We don't specify a Bazel version which should make the tool generate configs for the latest
# available Bazel release.
args:
# Latest available RBE Toolchain docker image.
- --toolchain_container=l.gcr.io/google/rbe-ubuntu16-04:latest
- --exec_os=linux
- --target_os=linux
- --output_tarball=rbe_default.tar
- --output_manifest=manifest.json
# Publish the generated configs to GCS. The configs are *always* published, regardless of whether
# the contents of the configs tarball have changed. The manifest always includes an update because
# it includes the upload timestamp. See the docs at the top of rbe_configs_upload.go for details on
# where configs are uploaded on GCS.
#
# This step doesn't need docker but just picking the same container as above.
- name: gcr.io/cloud-builders/docker
entrypoint: ./rbe_configs_upload
args:
- --configs_tarball=rbe_default.tar
- --configs_manifest=manifest.json