From 6102d4f330926237ad245cd899730a918dd5dc5a Mon Sep 17 00:00:00 2001 From: Katharine Berry Date: Wed, 4 Sep 2019 10:28:40 -0700 Subject: [PATCH] Add a job to build/push images from kubernetes-sigs/cluster-api --- .../k8s-staging-cluster-api.yaml | 31 +++++++++++++++++++ .../sig-cluster-lifecycle/config.yaml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 config/jobs/image-pushing/k8s-staging-cluster-api.yaml diff --git a/config/jobs/image-pushing/k8s-staging-cluster-api.yaml b/config/jobs/image-pushing/k8s-staging-cluster-api.yaml new file mode 100644 index 000000000000..6b8c77c8ec07 --- /dev/null +++ b/config/jobs/image-pushing/k8s-staging-cluster-api.yaml @@ -0,0 +1,31 @@ +postsubmits: + # this is the github repo we'll build from; this block needs to be repeated for each repo. + kubernetes-sigs/cluster-api: + - name: post-cluster-api-push-images + cluster: test-infra-trusted + annotations: + # this is the name of some testgrid dashboard to report to. + testgrid-dashboards: sig-cluster-lifecycle-image-pushes + decorate: true + branches: + - ^master$ + spec: + containers: + - image: gcr.io/k8s-testimages/image-builder:v20190828-ce571c0 + 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-cluster-api + - --scratch-bucket=gs://k8s-staging-cluster-api-scratch + - . + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /creds/service-account.json + volumeMounts: + - name: creds + mountPath: /creds + volumes: + - name: creds + secret: + secretName: deployer-service-account diff --git a/config/testgrids/kubernetes/sig-cluster-lifecycle/config.yaml b/config/testgrids/kubernetes/sig-cluster-lifecycle/config.yaml index 0e4934e76590..4e6e96aab7d2 100644 --- a/config/testgrids/kubernetes/sig-cluster-lifecycle/config.yaml +++ b/config/testgrids/kubernetes/sig-cluster-lifecycle/config.yaml @@ -17,6 +17,7 @@ dashboard_groups: - sig-cluster-lifecycle-cluster-api-provider-docker - sig-cluster-lifecycle-kops - sig-cluster-lifecycle-etcdadm + - sig-cluster-lifecycle-image-pushes dashboards: - name: sig-cluster-lifecycle-all @@ -44,6 +45,7 @@ dashboards: - name: sig-cluster-lifecycle-cluster-api-provider-docker - name: sig-cluster-lifecycle-kops - name: sig-cluster-lifecycle-etcdadm +- name: sig-cluster-lifecycle-image-pushes test_groups: # @luxas' multiarch e2e results