-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
k8s-staging-kustomize.yaml
38 lines (38 loc) · 1.86 KB
/
k8s-staging-kustomize.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
postsubmits:
# This is the github repo we'll build from. This block needs to be repeated
# for each repo.
kubernetes-sigs/kustomize:
# The name should be changed to match the repo name above
- name: post-kustomize-push-images
cluster: k8s-infra-prow-build-trusted
annotations:
# This is the name of some testgrid dashboard to report to.
# If this is the first one for your sig, you may need to create one
testgrid-dashboards: sig-cli-misc, sig-k8s-infra-gcb
testgrid-tab-name: kustomize-pushing-image
testgrid-alert-email: donnyxia@google.com
decorate: true
# this causes the job to only run on the master branch. Remove it if your
# job makes sense on every branch (unless it's setting a `latest` tag it
# probably does).
branches:
- ^master$
# this is a regex for semver, plus "kustomize/" prefix,
# from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
- ^kustomize/v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
spec:
serviceAccountName: gcb-builder
containers:
- image: gcr.io/k8s-staging-test-infra/image-builder:v20230111-cd1b3caf9c
command:
- /run.sh
args:
# this is the project GCB will run in, which is the same as the GCR
# images are pushed to.
- --project=k8s-staging-kustomize
# This is the same as above, but with -gcb appended.
- --scratch-bucket=gs://k8s-staging-kustomize-gcb
- --env-passthrough=PULL_BASE_REF
- --with-git-dir
- --gcb-config=releasing/cloudbuild_kustomize_image.yaml
- .