diff --git a/config/jobs/image-pushing/k8s-staging-service-apis.yaml b/config/jobs/image-pushing/k8s-staging-service-apis.yaml new file mode 100644 index 000000000000..e1b22b81ccf4 --- /dev/null +++ b/config/jobs/image-pushing/k8s-staging-service-apis.yaml @@ -0,0 +1,32 @@ +postsubmits: + # this is the github repo we'll build from; this block needs to be repeated for each repo. + kubernetes-sigs/k8s-container-image-promoter: + - name: service-apis-postsubmit-push-to-staging + cluster: test-infra-trusted + annotations: + # this is the name of some testgrid dashboard to report to. + testgrid-dashboards: sig-network-service-apis + decorate: true + branches: + - ^master$ + spec: + containers: + - image: gcr.io/k8s-testimages/image-builder:v20200107-6bdb17e + 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-service-apis + - --scratch-bucket=gs://k8s-staging-service-apis + - --env-passthrough=PULL_BASE_REF + - . + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /creds/service-account.json + volumeMounts: + - name: creds + mountPath: /creds + volumes: + - name: creds + secret: + secretName: deployer-service-account