-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add platform option to BootcImageBuilder for architecture specification #62
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ export async function run(): Promise<void> { | |
| const configFilePath: string = core.getInput('config-file') | ||
| const image: string = core.getInput('image') | ||
| const builderImage: string = core.getInput('builder-image') | ||
| const platform: string = core.getInput('platform') || 'linux/amd64' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be best if this defaults to |
||
| const additionalArgs: string = core.getInput('additional-args') | ||
| const chown: string = core.getInput('chown') | ||
| const rootfs: string = core.getInput('rootfs') | ||
|
|
@@ -34,6 +35,7 @@ export async function run(): Promise<void> { | |
| configFilePath, | ||
| image, | ||
| builderImage, | ||
| platform, | ||
| additionalArgs, | ||
| chown, | ||
| rootfs, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Rather than defaulting to linux/amd64, please can we make this an optional input (i.e. not specified in any podman/bib commands by default) so it defaults to BIB's implementation?
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.
Yeah I think copilot called me out and fixed that.
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.
whoops I just committed it
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.
I couldn't track why there are 2 copies of the same image pull code