sparse-intern-71089
04/19/2023, 8:21 AMsalmon-account-74572
04/19/2023, 4:46 PMorange-policeman-59119
04/19/2023, 5:10 PMcacheFrom
, and setting the build arg BUILDKIT_INLINE_CACHE=1
so I don't think you need to build specific stages any longer to obtain caching benefits. There is a caveat: there is an outstanding bug in Docker that causes inline caching to fail every other build, but we may have a workaround in a coming release.bright-orange-69401
04/19/2023, 5:12 PMcan you confirm that you’re on the latest version of the provider?Yes, as of this morning at least
orange-policeman-59119
04/19/2023, 5:14 PMpreview
.bright-orange-69401
04/19/2023, 5:14 PMRegarding build stages, I’m not sure what you mean? All build stages utilize the same context, I’ve confirmed this by comparing our provider to the Docker CLI’s implementation.That’s my point : when you build a
foo
stage, your image digest is not gonna be the same as a bar
stage on the same Dockerfile, even though they have the same context
So the hashContext
function that calculates the context’s hash and then decides not to actually run the docker engine is actually causing problems for usbright-orange-69401
04/19/2023, 5:15 PMI’d be happy to hop on a call to talk through the changes in v4 and create issue(s) tracking anything we think is a defect.Sure, I’m available if you are
orange-policeman-59119
04/19/2023, 5:16 PMbright-orange-69401
04/19/2023, 6:47 PMshy-arm-32391
04/20/2023, 11:01 PMshy-arm-32391
04/20/2023, 11:19 PM