-
Notifications
You must be signed in to change notification settings - Fork 35
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 'platform' parameter #75
Add support for 'platform' parameter #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution 👍
I think we should not use the --arch
flag when input platform
is provided otherwise, it will result in an error.
I was assuming this will be handled by the buildah, but it fails if both the flags are provided.
error building system context: invalid --platform may not be used with --os, --arch, or --variant
Also, it will be great if you can add a test for this in the multiarch build workflow
Thank you @divyansh42 for the review; I'll make those changes here soon, hopefully within the next few days. |
Reading a bit more of the history of the That makes me wonder whether we should use |
@jayaddison Ubuntu 20.04 runners are still on buildah |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayaddison I think we'll have to add separate jobs for arch
and platform
input. As both the inputs are contradictory and it will be hard to add these via matrix.
There is a syntax problem in the workflow you modified.
I'm not certain whether this is the exact cause of the build failures at 7b92604, but I noticed that the available OS/Arch list on Docker Hub uses a full os/arch/variant format for the ARM64v8 image. I've pushed 9871340 as an experiment to see if updating the |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for addressing those reviews.
These changes looks good to me.
/cc @tetchel
Please fix the merge conflicts (#76 went in) |
Thanks both - merge conflicts now resolved. |
Signed-off-by: James Addison <[email protected]>
Description
This adds support for the
platform
argument tobuildah
, which can be used to configure the build OS, architecture and variant within a single parameter.Related Issue(s)
Resolves #65.
Checklist
Changes made
Add the
platform
argument to both from-scratch and from-container-file build paths.