mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 18:51:43 +00:00
fix: tagging manifest with latest
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user