diff --git a/config/jobs/image-pushing/k8s-staging-karpenter-cluster-api.yaml b/config/jobs/image-pushing/k8s-staging-karpenter-cluster-api.yaml new file mode 100644 index 000000000000..7069507f9bd3 --- /dev/null +++ b/config/jobs/image-pushing/k8s-staging-karpenter-cluster-api.yaml @@ -0,0 +1,39 @@ +postsubmits: + # This is the github repo we'll build from. This block needs to be repeated + # for each repo. + kubernetes-sigs/karpenter-provider-cluster-api: + # The name should be changed to match the repo name above + - name: post-karpenter-provider-cluster-api-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-cluster-lifecycle-image-pushes, sig-k8s-infra-gcb + 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). + # if you remove it you must instead use the following: + #skip_branches: + # # do not run on dependabot branches, these exist prior to merge + # # only merged code should trigger these jobs + # - '^dependabot' + 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:v20250914-3092127382 + 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-karpenter-cluster-api + # This is the same as above, but with -gcb appended. + - --scratch-bucket=gs://k8s-staging-karpenter-cluster-api-gcb + - --env-passthrough=PULL_BASE_REF + - .