ci(merge): fix alternate registry target image #2

This commit is contained in:
Julien Neuhart
2025-01-31 15:58:06 +01:00
parent 85c7f2806f
commit 2293300182

View File

@@ -92,7 +92,7 @@ run_cmd() {
echo "➡️ $target pushed"
echo
if [ -n "$alternate_registry" ]; then
alternate_target="${target//$DOCKER_REGISTRY:$DOCKER_REPOSITORY/$alternate_registry:$DOCKER_REPOSITORY}"
alternate_target="${target/$DOCKER_REGISTRY/$alternate_registry}"
cmd="docker buildx imagetools create \
-t $target \
$alternate_target
@@ -100,7 +100,7 @@ run_cmd() {
run_cmd "$cmd"
echo "➡️ $alternate_target pushed"
ecno
echo
fi
done