Merge pull request #6065 from dmcgowan/mirror-action-custom-tag
Update mirror images to take target image name
This commit is contained in:
commit
96fda588b9
10
.github/workflows/images.yml
vendored
10
.github/workflows/images.yml
vendored
@ -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 }}
|
||||
mirror="ghcr.io/containerd/${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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user