Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcdadm: create job to push builds to staging #20261

Merged
merged 1 commit into from
Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions config/jobs/image-pushing/k8s-staging-etcdadm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
postsubmits:
kubernetes-sigs/etcdadm:
- name: etcdadm-postsubmit-push-to-staging
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-cluster-lifecycle-etcdadm
decorate: true
branches:
- ^master$
- ^release-.*
# Build tags also
# this is a regex for semver, from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
- ^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-testimages/image-builder:v20200901-ab141a0
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-etcdadm
- --scratch-bucket=gs://k8s-staging-etcdadm-gcb
- --env-passthrough=PULL_BASE_REF
- --with-git-dir
- --build-dir=.
- dev/staging/