Skip to content

Instantly share code, notes, and snippets.

@dims
Last active May 20, 2020 10:13
Show Gist options
  • Save dims/0aef844c22af80ed3637745071c8854c to your computer and use it in GitHub Desktop.
Save dims/0aef844c22af80ed3637745071c8854c to your computer and use it in GitHub Desktop.
#!/bin/bash
DEST_REPO=${DEST_REPO:-"gcr.io/k8s-staging-csi/"}
images=(
quay.io/k8scsi/csi-attacher:v2.2.0
quay.io/k8scsi/csi-attacher:v3.0.0-rc1
quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
quay.io/k8scsi/csi-node-driver-registrar:v1.3.0
quay.io/k8scsi/csi-provisioner:v1.6.0
quay.io/k8scsi/csi-provisioner:v2.0.0-rc1
quay.io/k8scsi/csi-resizer:v0.4.0
quay.io/k8scsi/csi-resizer:v0.5.0
quay.io/k8scsi/csi-snapshotter:v2.0.1
quay.io/k8scsi/csi-snapshotter:v2.1.0
quay.io/k8scsi/hostpathplugin:v1.4.0-rc2
quay.io/k8scsi/livenessprobe:v1.1.0
quay.io/k8scsi/mock-driver:v3.1.0
quay.io/k8scsi/snapshot-controller:v2.0.0-rc2
)
for image in "${images[@]}"; do
docker pull ${image}
docker tag ${image} "$DEST_REPO${image##*/}"
docker push "$DEST_REPO${image##*/}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment