From 9c592e2b4e6c71735f35d0628172a249a5267893 Mon Sep 17 00:00:00 2001 From: vitt-bagal <31851690+vitt-bagal@users.noreply.github.com> Date: Wed, 25 Mar 2020 16:52:00 +0530 Subject: [PATCH 1/2] add image push job for CSI packages --- .../jobs/image-pushing/k8s-staging-csi.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config/jobs/image-pushing/k8s-staging-csi.yaml 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..a23331565ac8 --- /dev/null +++ b/config/jobs/image-pushing/k8s-staging-csi.yaml @@ -0,0 +1,29 @@ +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: + - ^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 + - . From 3b839d26632ba4b4996e47731ca618a2116a69e3 Mon Sep 17 00:00:00 2001 From: vitt-bagal <31851690+vitt-bagal@users.noreply.github.com> Date: Fri, 27 Mar 2020 15:25:40 +0530 Subject: [PATCH 2/2] added comment --- config/jobs/image-pushing/k8s-staging-csi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/jobs/image-pushing/k8s-staging-csi.yaml b/config/jobs/image-pushing/k8s-staging-csi.yaml index a23331565ac8..5d94a21a807e 100644 --- a/config/jobs/image-pushing/k8s-staging-csi.yaml +++ b/config/jobs/image-pushing/k8s-staging-csi.yaml @@ -10,6 +10,7 @@ postsubmits: 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-]+)*))?$