fix: tagging manifest with latest

This commit is contained in:
ThetaDev
2024-03-04 13:00:00 +01:00
parent 27e116b4fa
commit 79ca97c0a2

View File

@@ -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"