Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set custom scope for Docker build CI #165

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

seqre
Copy link
Contributor

@seqre seqre commented Apr 3, 2024

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
Copy link
Collaborator

Oh, interesting! Thanks for looking into this!

@bradlarsen bradlarsen merged commit 3f7c173 into praetorian-inc:main Apr 3, 2024
9 checks passed
@bradlarsen
Copy link
Collaborator

This probably improves the situation in #163.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants