Skip to content

Commit

Permalink
adds k8s-staging-csi-secrets-store image pushing prow config
Browse files Browse the repository at this point in the history
Adds the prow config needed for pushing the CSI secrets store driver to
a staging registry, from where the images will be pushed.
  • Loading branch information
claudiubelu committed Apr 19, 2020
1 parent c4e0cda commit b82ce92
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions config/jobs/image-pushing/k8s-staging-csi-secrets-store.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
postsubmits:
# This is the github repo we'll build from. This block needs to be repeated
# for each repo.
kubernetes-sigs/secrets-store-csi-driver:
# The name should be changed to match the repo name above
- name: secrets-store-csi-driver-push-image
# TODO: move this to a more appropriate cluster.
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-auth-secrets-store-csi-driver
decorate: true
# we only need to run if necessary (e.g.: the version was bumped)
run_if_changed: '^docker\/'
# 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:
serviceAccountName: deployer # TODO(fejta)- use pusher
containers:
- image: gcr.io/k8s-testimages/image-builder:v20200213-0032cdb
command:
- /run.sh
args:
# this is the project GCB will run in, which is the same as the GCR
# images are pushed to.
- --project=gcr.io/k8s-staging-csi-secrets-store
# This is the same as above, but with -gcb appended.
- --scratch-bucket=gs://gcr.io/k8s-staging-csi-secrets-store-gcb
- --env-passthrough=PULL_BASE_REF
- --build-dir=.
- docker
volumeMounts:
- name: windows-cert
mountPath: /root/.docker-1809
- name: windows-cert
mountPath: /root/.docker-1903
- name: windows-cert
mountPath: /root/.docker-1909
volumes:
- name: windows-cert
secret:
secretName: windows-img-promoter-cert

0 comments on commit b82ce92

Please sign in to comment.