diff --git a/config/jobs/image-pushing/k8s-staging-csi.yaml b/config/jobs/image-pushing/k8s-staging-csi.yaml new file mode 100644 index 000000000000..5d94a21a807e --- /dev/null +++ b/config/jobs/image-pushing/k8s-staging-csi.yaml @@ -0,0 +1,30 @@ +postsubmits: + # This is the github repo we'll build from. This block needs to be repeated + # for each repo. + kubernetes-csi/node-driver-registrar: + # The name should be changed to match the repo name above + - name: post-node-driver-registrar-push-images + cluster: test-infra-trusted + annotations: + # This is the name of some testgrid dashboard to report to. + testgrid-dashboards: sig-storage-csi-node-driver-registrar + decorate: true + branches: + # For publishing canary images + - ^master$ + # 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: deployer # TODO(fejta): use pusher + containers: + - image: gcr.io/k8s-testimages/image-builder:v20200114-6d2c483 + 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-csi + # This is the same as above, but with -gcb appended. + - --scratch-bucket=gs://k8s-staging-csi-gcb + - --env-passthrough=PULL_BASE_REF + - .