Closed yegor256 closed 6 months ago
@Kurt-von-Laven please, help
You could add a condition on your docker build
step so that it only runs if there was a cache hit, but I bet you will get better performance using the approach recommended in our README:
Note that this action does not perform Docker layer caching. The official Docker build push action performs Docker layer caching for built images but does not cache pulled images.
Please let me know if neither approach solves your problem.
@Kurt-von-Laven maybe you know how exactly I can do this?
You could add a condition on your docker build step
I'm doing this:
I intend to build the image only once, unless the
Dockerfile
is changed. However, this approach doesn't work: thedocker build
starts from scratch, even though your plugin finishes with this:Full log is here: https://github.com/yegor256/cam/actions/runs/8498131819/job/23277521845