How to enable Docker layer caching between builds in GitHub actions? #1245
Replies: 3 comments 11 replies
-
Do you see the same behaviour (slower than expected image builds) when using Also, if you're wanting to use the cache backend, keep in mind that you need to use |
Beta Was this translation helpful? Give feedback.
-
@charleskorn I've reviewed the roadmap, issues, and PRs and it looks like this is not a priority right now right? To make sure I understand, you suggest that we pre-build the images using |
Beta Was this translation helpful? Give feedback.
-
Meanwhile, I was also trying to pass |
Beta Was this translation helpful? Give feedback.
-
I was trying to speed up our Batect runs across PRs, where we're using Batect to setup an environment for functional tests. If nothing in the test environment / Dockerfile changes, my goal would be that Batect's setup across PRs would essentially be a no-op as everything comes from the layer cache.
However, guessing from the build time for
funTest-analyzer-docker
of a whopping 41 minutes, which is about twice as much as expected, Batect does not seem to make use of the layers restored viadocker/build-push-action
, and instead the Docker image was built twice.So I'm wondering whether anyone was able to setup layer changing for Batect via https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache?
Beta Was this translation helpful? Give feedback.
All reactions