From 79ca97c0a2fc8f4808077a3306cdd6847be400b6 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Mon, 4 Mar 2024 13:00:00 +0100 Subject: [PATCH] fix: tagging manifest with latest --- entrypoint.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2a9af5c..8e59589 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -113,14 +113,13 @@ if [ -n "$INPUT_PLATFORMS" ]; then DIGESTS="$DIGESTS -m $digest" done - TAGS="-t $IMAGE" - if [ -n "$IMAGE_LATEST" ]; then - TAGS="$TAGS -t $IMAGE_LATEST" - fi - - manifest_cmd="crane index append $TAGS $DIGESTS" + manifest_cmd="crane index append -t $IMAGE $DIGESTS" echo "Building manifest: $manifest_cmd" IMAGE_TAG_DIGEST=$(eval "$manifest_cmd") + + if [ -n "$IMAGE_LATEST" ]; then + crane tag "$IMAGE" latest + fi else # Build and push image for the default platform echo "⚒️ Building image $IMAGE"