-
Notifications
You must be signed in to change notification settings - Fork 273
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
mode=max
for multi-stage build BuildKit
#3219
Comments
@antoinelyset absolutely! Thank you for reporting this. I've been thinking about this a lot recently. This is definitely something we want to implement. One issue is that some registries do not support the manifest format required for Would you kindly give us feedback about the approach described in #3110 ? Would that approach work for you? Would you prefer that we auto-detect compatibility and just use Thanks a lot for your time spent on this. |
Hey! Thanks for the quick answer. The auto-detect implementation would be nice for us (we wouldn't need to reimplement I'm glad you are working on this because it's a big slowdown for us :D |
Something that might also go in favour of the override is that we sometimes don't want to push the cache of a build. For example, in the context of a CI build on a feature branch we don't want to override the cache of our main branch. |
@antoinelyset that is actually a great thought, thanks for the idea. actually, buildkit supports multiple |
@antoinelyset how do you feel about something like the following example config, would having a
resulting buildkit args would be:
|
Seems like a fine idea! |
@antoinelyset Thanks for your feedback on this. |
Hey Garden,
I might be wrong but currently, when building the Docker image, we only push the cache of the final image. If you use a multistage build it isn't optimal.
Command example:
I think Garden should use
mode=max
option as described herehttps://github.com/moby/buildkit#export-cache
What do you think?
The text was updated successfully, but these errors were encountered: