Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for docker --platform flag #376

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

tphoney
Copy link

@tphoney tphoney commented Nov 17, 2022

Add a --platform flag so that the user can specify a value for the corresponding flag passed to docker. This is useful in the context of multi-arch builds and buildkit (DOCKER_BUILDKIT=1 in the environment).

Signed-off-by: Marcelo E. Magallon [email protected]

Add a --platform flag so that the user can specify a value for the
corresponding flag passed to docker. This is useful in the context of
multi-arch builds and buildkit (DOCKER_BUILDKIT=1 in the environment).

Signed-off-by: Marcelo E. Magallon <[email protected]>
@tphoney tphoney added the enhancement New feature or request label Nov 17, 2022
Copy link
Contributor

@d1wilko d1wilko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d1wilko d1wilko merged commit 12be10a into drone-plugins:master Nov 17, 2022
@steven-mi
Copy link

steven-mi commented Dec 19, 2022

Hi @tphoney @d1wilko ,

not sure if that is sufficient for building ARM images. For us to make multiplatform work, we needed to use buildx. I added a draft-PR for the changes https://github.com/drone-plugins/drone-docker/pull/380/files#diff-48e45f5e7cb11c0888b75da3a35470e9bded028e398ecdc3822385653011895d. Not sure how to follow up on the required changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants