forked from GoogleContainerTools/distroless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
30 lines (26 loc) · 947 Bytes
/
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
# A cloud build config to release a PAR binary of
# the dpkg_parser.par used for the package manager bazel rules
# A cloudbuild is triggered by every commit and $COMMIT_SHA is a built-in
# substitution
steps:
# Build the dpkg_parser PAR file
# this binary is used by the package manager rules
# to download debian package lists and debian packages
- name: gcr.io/cloud-builders/bazel
args: [
'--output_base', '/workspace',
'build', '//package_manager:dpkg_parser.par',
# TODO(r2d4): Remove once PAR compilation runs properly inside
# the Bazel sandbox on cloudbuild.
'--strategy', 'PythonCompile=standalone'
]
env: ['PROJECT_ID=$PROJECT_ID']
# Upload the dpkg_parser PAR file to a GCS bucket
- name: gcr.io/cloud-builders/gsutil
args: [
'cp',
'bazel-bin/package_manager/dpkg_parser.par',
'gs://distroless/package_manager_tools/$COMMIT_SHA/dpkg_parser.par'
]
# We produce no Docker images.
images: []