praetorian-inc / noseyparker

Nosey Parker is a command-line program that finds secrets and sensitive information in textual data and Git history.
Apache License 2.0
1.56k stars 77 forks source link

Set custom scope for Docker build CI #165

Closed seqre closed 3 months ago

seqre commented 3 months ago

By default, docker/build-push-action uses buildkit as a scope. In our Docker CI setup, we're building two images at the same time, and it seems that those caches were somehow overwritten in a way that they couldn't be reused. By setting the custom scope, the caching started working. In tests in my personal repo, the building time of the Debian image (one designed to use that caching well) went down from 9m 48s to 5m 41s.

bradlarsen commented 3 months ago

Oh, interesting! Thanks for looking into this!

bradlarsen commented 3 months ago

This probably improves the situation in #163.