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

build-push-to-dockerhub caches by default #480

Open
mem opened this issue Oct 17, 2024 · 0 comments
Open

build-push-to-dockerhub caches by default #480

mem opened this issue Oct 17, 2024 · 0 comments

Comments

@mem
Copy link

mem commented Oct 17, 2024

The action sets cache-to to "type=gha,mode=max" by default, and this is trashing the cache, because every single PR and every single update in a PR is adding stuff to the cache.

  1. This behavior should be documented, so that it doesn't catch users by surprise
  2. How to disable this should be documented (I assume setting cache-to to an empty value should be enough, I have not tried)

The cache for my repo is full of buildkit-blob-1-sha256:.... This is problematic because GitHub limits the size of the cache, and it starts evicting older entries as the cache becomes full. This has the potential to evict useful entries (I'm not sure if GitHub takes last access into account for eviction, or if it only looks at creation time; I would hope it's the former, but I do not know). At any rate, the large number of entries (I have ~ 200) makes it difficult to work with the list, which hinders debugging.

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

No branches or pull requests

1 participant