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

Does it remove discarded layers from cache? [Question] #104

Closed
FrozenAlex opened this issue Jan 6, 2021 · 1 comment
Closed

Does it remove discarded layers from cache? [Question] #104

FrozenAlex opened this issue Jan 6, 2021 · 1 comment

Comments

@FrozenAlex
Copy link

Does all of the cache gets hit at once so automatic removal won't work with it or how does it discard image layers that have been replaced on rebuild?
Will it just fill up all of the remaining space in cache and just get deleted all together?

@rcowsill
Copy link
Contributor

rcowsill commented Jan 11, 2021

The layers are split into multiple caches, but they're loaded as a unit. That means that layers replaced on rebuild aren't discarded. This issue is discussed further in #55.

When the quota is used up GitHub starts deleting the oldest cache files to bring the total size for the repo under 5GB. That's likely to delete the "root" cache for the action, since it is always saved/loaded first. When that happens a new layer cache will be created from scratch, and the layers from the old cache will get discarded in 7 days (at most) since they're no longer used.

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

2 participants