-
Notifications
You must be signed in to change notification settings - Fork 119
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 ability to specify args that will be passed to docker during the build #232
Conversation
Hey @chrisneal - would you be able to provide an example build command including the actual arguments you wish to use? |
|
Thanks @chrisneal. So to confirm, this PR is adding support for If so, options are supported by both docker build and docker buildx.
Assuming this is correct, do we need to provide support for options which don't require a value such as |
@joedixon I have made that change. The CLI will look like: --docker-arg="FOO=BAR" --docker-arg="FIZZ=BAR" --docker-arg="FIZZLE" The equivalent manifest file will now need to look like: docker-args:
- FOO: BAR
- FIZZ: BAR
- FIZZLE |
Hey @chrisneal I made some tweaks to the PR:
Would you mind giving this a test and letting me know what you think? |
@joedixon This looks good, thank you for making those changes. |
@joedixon I've added a line to output the build command. I think this will be useful for people (aka. me) to see, if they're adding additional build options. |
This PR allows passing arguments to the
docker build
step.We're using Buildx (that has been
installed
, which replacesdocker build
withdocker buildx build
). Buildx allows us to pass in additional parameters to the build command (for caching etc.).This PR allows for docker args to be passed via the CLI:
Or added to the manifest file: