-
Notifications
You must be signed in to change notification settings - Fork 141
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
Is it possible to set cache-to
to use registry cache?
#400
Comments
Hi @bjeanes, interesting idea. Actually, the plugin does not use neither the The end result is the same and it is even compatible with older docker versions (that do not have buildkit enabled). Though it may be a good idea to replace this feature with the corresponding newer features when we do some incompatible changes, like defaulting to version 2 of the plugin (see #390) |
@toote |
@farhansaed sorry for the delay, we've been busy working and testing some breaking changes that affect the way
If you are using the plugin's option If you are referring to docker's
So the answer, as with most things, is depends on whether you are referring to this plugin's |
I had a squiz through the build.sh code and the docs and it seems that this plugin only uses the
inline
cache (assuming you set build argBUILDKIT_INLINE_CACHE=1
). We are moving towards multi-stage builds for a number of reasons and the Docker docs recommend using theregistry
cache in that case. I think the implication is thatinline
cache will only cache the final/target stage.Presently, this plugin doesn't have a way to set
cache-to
, relying exclusively on theBUILDKIT_INLINE_CACHE=1
methodology for activating theinline
plugin, which appears to have no equivalent forregistry
caching.Further, I'm not sure whether
build.sh
would tolerate the syntax of--cache-from type=registry,ref=<registry>/<cache-image>
vs--cache-from=<registry>/<cache-image>
, but this is just based on reading the code.Has this direction been explored yet?
The text was updated successfully, but these errors were encountered: