palantir / gradle-docker

a Gradle plugin for orchestrating docker builds and pushes.
Apache License 2.0
747 stars 158 forks source link

Using platform without buildx #628

Open Chase22 opened 1 year ago

Chase22 commented 1 year ago

What happened?

On MacOs silicon it's currently required for a lot of images to provide the --platform flag. This flag is only provided to the command if buildx is enabled, which then causes an "unknown flag --platform" error

What did you want to happen?

Allow to use --platform without activating buildx. The docker command line supports this. Or if the behaviour is important, allow for arbitrary arguments to be added via a separate property.