adjust outputs

This commit is contained in:
ThetaDev
2024-03-02 23:03:12 +01:00
parent e977f6a49c
commit 57b6819415

View File

@@ -95,7 +95,7 @@ runKaniko() {
if [ -n "$INPUT_PLATFORMS" ]; then
# Build image for all platforms, then push the manifest
platformArray=$(echo "$INPUT_PLATFORMS" | sed 's/,/ /g' )
echo "Building for the following platforms: $platformArray"
echo "⚒️ Building image $IMAGE for the following platforms: $platformArray"
for platform in $platformArray; do
echo; echo "📦 Building image for $platform"
@@ -128,6 +128,8 @@ if [ -n "$INPUT_PLATFORMS" ]; then
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
else
# Build and push image for the default platform
echo "⚒️ Building image $IMAGE"
DESTINATION="--destination $IMAGE"
if [ -n "$IMAGE_LATEST" ]; then
DESTINATION="$DESTINATION --destination $IMAGE_LATEST"
@@ -144,4 +146,5 @@ echo "image=$IMAGE" >> "$GITHUB_OUTPUT"
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
echo "image-tag-digest=$IMAGE_TAG_DIGEST" >> "$GITHUB_OUTPUT"
echo "🎉 Successfully deployed $IMAGE_TAG_DIGEST"
echo "🎉 Successfully deployed $IMAGE"
echo "Digest: $DIGEST"