mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 20:31:43 +00:00
fix: set platform when building image
This commit is contained in:
@@ -105,7 +105,7 @@ if [ -n "$INPUT_PLATFORMS" ]; then
|
|||||||
DESTINATION="--no-push --tarPath /build/${platformFn}.tar --destination $IMAGE"
|
DESTINATION="--no-push --tarPath /build/${platformFn}.tar --destination $IMAGE"
|
||||||
DIGEST="--image-name-tag-with-digest-file=/build/${platformFn}_image-tag-digest"
|
DIGEST="--image-name-tag-with-digest-file=/build/${platformFn}_image-tag-digest"
|
||||||
|
|
||||||
runKaniko "${ARGS} $DESTINATION $DIGEST"
|
runKaniko "${ARGS} --custom-platform=${platform} $DESTINATION $DIGEST"
|
||||||
|
|
||||||
echo "✅ $platform image built: $(head -n 1 "/build/${platformFn}_image-tag-digest")"
|
echo "✅ $platform image built: $(head -n 1 "/build/${platformFn}_image-tag-digest")"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user