mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 20:31:43 +00:00
adjust outputs
This commit is contained in:
@@ -95,7 +95,7 @@ runKaniko() {
|
|||||||
if [ -n "$INPUT_PLATFORMS" ]; then
|
if [ -n "$INPUT_PLATFORMS" ]; then
|
||||||
# Build image for all platforms, then push the manifest
|
# Build image for all platforms, then push the manifest
|
||||||
platformArray=$(echo "$INPUT_PLATFORMS" | sed 's/,/ /g' )
|
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
|
for platform in $platformArray; do
|
||||||
echo; echo "📦 Building image for $platform"
|
echo; echo "📦 Building image for $platform"
|
||||||
@@ -128,6 +128,8 @@ if [ -n "$INPUT_PLATFORMS" ]; then
|
|||||||
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
||||||
else
|
else
|
||||||
# Build and push image for the default platform
|
# Build and push image for the default platform
|
||||||
|
echo "⚒️ Building image $IMAGE"
|
||||||
|
|
||||||
DESTINATION="--destination $IMAGE"
|
DESTINATION="--destination $IMAGE"
|
||||||
if [ -n "$IMAGE_LATEST" ]; then
|
if [ -n "$IMAGE_LATEST" ]; then
|
||||||
DESTINATION="$DESTINATION --destination $IMAGE_LATEST"
|
DESTINATION="$DESTINATION --destination $IMAGE_LATEST"
|
||||||
@@ -144,4 +146,5 @@ echo "image=$IMAGE" >> "$GITHUB_OUTPUT"
|
|||||||
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
|
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
|
||||||
echo "image-tag-digest=$IMAGE_TAG_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"
|
||||||
|
|||||||
Reference in New Issue
Block a user