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

Set up prow job to automatically build and push JobSet image to GCR #29360

Merged
merged 2 commits into from
Apr 24, 2023
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
23 changes: 23 additions & 0 deletions config/jobs/image-pushing/k8s-staging-jobset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
postsubmits:
kubernetes-sigs/jobset:
- name: post-jobset-push-images
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-apps, sig-k8s-infra-gcb
decorate: true
branches:
- ^main$
- ^release-
# Build semver tags, too
- ^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:
- --project=k8s-staging-jobset
- --scratch-bucket=gs://k8s-staging-jobset-gcb
- --env-passthrough=PULL_BASE_REF
- .