mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
ci: add CronJob for automated image mirroring in the CI registry
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
2f6400fe57
commit
06409fcbd6
36
mirror/mirror-cronjob.yaml
Normal file
36
mirror/mirror-cronjob.yaml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
apiVersion: batch/v1beta1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: mirror-images
|
||||||
|
labels:
|
||||||
|
app: mirror-images
|
||||||
|
spec:
|
||||||
|
schedule: '@daily'
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mirror-images
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mirror-images
|
||||||
|
image: image-registry.openshift-image-registry.svc:5000/ceph-csi/mirror-images:latest
|
||||||
|
env:
|
||||||
|
- name: DOCKER_CONFIG_JSON
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: cephcsibot-docker-io
|
||||||
|
key: .dockerconfigjson
|
||||||
|
- name: CI_REGISTRY_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: container-registry-auth
|
||||||
|
key: username
|
||||||
|
- name: CI_REGISTRY_PASSWD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: container-registry-auth
|
||||||
|
key: passwd
|
||||||
|
restartPolicy: OnFailure
|
Loading…
Reference in New Issue
Block a user