Update mirror images to take target image name
Allow overwriting the target tag to support mirror images from multiple
sources under our single namespace.
@@ -6,6 +6,9 @@ on:
description: "Upstream image to mirror"
required: true
default: "docker.io/library/busybox:1.32"
+ image:
+ description: "Target image name (override)"
+
jobs:
mirror:
@@ -56,7 +59,12 @@ jobs:
sleep 5
upstream=${{ github.event.inputs.upstream }}
+ target=${{ github.event.inputs.image }}
+ if [[ "$target" == "" ]]; then
mirror="ghcr.io/containerd/${upstream##*/}"
+ else
+ mirror="ghcr.io/containerd/${target}"
+ fi
echo "Mirroring $upstream to $mirror"
