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"
|
DIGESTS="$DIGESTS -m $digest"
|
||||||
done
|
done
|
||||||
|
|
||||||
TAGS="-t $IMAGE"
|
manifest_cmd="crane index append -t $IMAGE $DIGESTS"
|
||||||
if [ -n "$IMAGE_LATEST" ]; then
|
|
||||||
TAGS="$TAGS -t $IMAGE_LATEST"
|
|
||||||
fi
|
|
||||||
|
|
||||||
manifest_cmd="crane index append $TAGS $DIGESTS"
|
|
||||||
echo "Building manifest: $manifest_cmd"
|
echo "Building manifest: $manifest_cmd"
|
||||||
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
||||||
|
|
||||||
|
if [ -n "$IMAGE_LATEST" ]; then
|
||||||
|
crane tag "$IMAGE" latest
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Build and push image for the default platform
|
# Build and push image for the default platform
|
||||||
echo "⚒️ Building image $IMAGE"
|
echo "⚒️ Building image $IMAGE"
|
||||||
|
|||||||
Reference in New Issue
Block a user