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