Skip to content

Commit

Permalink
Add prow job config for pushing cloud provider azure image to gcr sta…
Browse files Browse the repository at this point in the history
…ging repo.
  • Loading branch information
t-qini committed Dec 10, 2019
1 parent ef19dcf commit fd684f5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 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,40 @@
postsubmits:
# This is the github repo we'll build from. This block needs to be repeated
# for each repo.
kubernetes-sigs/some-repo-name:
# 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: sig-provider-azure-image-pushes
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 fd684f5

Please sign in to comment.