prettier outputs

This commit is contained in:
ThetaDev
2024-03-02 20:04:53 +01:00
parent c6fa5d6f37
commit 0b6578f997
2 changed files with 16 additions and 0 deletions

View File

@@ -98,12 +98,16 @@ if [ -n "$INPUT_PLATFORMS" ]; then
echo "Building for the following platforms: $platformArray"
for platform in $platformArray; do
echo; echo "📦 Building image for $platform"
platformFn=$(echo "$platform" | sed 's#/#-#g')
DESTINATION="--no-push --tarPath /build/${platformFn}.tar --destination $IMAGE"
DIGEST="--image-name-tag-with-digest-file=/build/${platformFn}_image-tag-digest"
runKaniko "${ARGS} $DESTINATION $DIGEST"
echo "$platform image built: $(cat "/build/${platformFn}_image-tag-digest")"
done
crane auth login "$REGISTRY" -u "$USERNAME" -p "$PASSWORD"
@@ -124,6 +128,8 @@ if [ -n "$INPUT_PLATFORMS" ]; then
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
else
# Build and push image for the default platform
echo; echo "📦 Building image"
DESTINATION="--destination $IMAGE"
if [ -n "$IMAGE_LATEST" ]; then
DESTINATION="$DESTINATION --destination $IMAGE_LATEST"