FYI I was able to get docker build caching working...
# development
n
FYI I was able to get docker build caching working with the GHA cache backend - https://github.com/pantsbuild/example-docker/pull/12 I'm going to also investigate adding global default options for image cache as I think it's likely to be the same settings across all images for most use cases. I noticed that the Docker
--no-cache
CLI flag only applies to local build cache, so setting this does not override
--cache-to
and
--cache-from
. I am thinking of using the related pants docker target option
build_no_cache
to apply that behaviour though, so there's a way to run cache-busting builds .
b
Nice!! Very cool What do you think about using
__defaults__
to do global defaults? (Eg have something in a top level
BUILD
)
n
Wow I did not know that feature existed. Yes I think that would work just fine for now.