Skip to content

Commit

Permalink
Merge pull request #15545 from nilo19/qi-add-staging-gcr-job
Browse files Browse the repository at this point in the history
Add prow job config for pushing cloud provider azure image to gcr staing repo.
  • Loading branch information
k8s-ci-robot authored Dec 10, 2019
2 parents 74993cb + 80e5db8 commit 9170073
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions config/jobs/image-pushing/k8s-staging-provider-azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
postsubmits:
# This is the github repo we'll build from. This block needs to be repeated
# for each repo.
kubernetes-sigs/cloud-provider-azure:
# The name should be changed to match the repo name above
- name: post-provider-azure-push-images
cluster: test-infra-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: provider-azure-master
testgrid-tab-name: post-provider-azure-push-images
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).
branches:
- ^master$
spec:
containers:
- image: gcr.io/k8s-testimages/image-builder:v20190906-d5d7ce3
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-provider-azure
# This is the same as above, but with -gcb appended.
- --scratch-bucket=gs://k8s-staging-cluster-api-gcb
- --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

0 comments on commit 9170073

Please sign in to comment.