Closed jiridanek closed 1 week ago
One more option: https://github.com/marketplace/actions/ghcr-pruning
@caponetto do you have a favorite? I'm unfamiliar with the options, so I'm inclined to pick yours
Hey @jiridanek, I was looking at the options and the container-retention-policy that you found looks better in terms of activity and popularity in the community. Also, I saw that there will be a new major release (v3) coming out soon, which is being developed on this branch.
It appears that ghcr.io does not support setting expiration. The only way is to periodically delete old images. This is probably a good thing to do, just to avoid excessive storage usage.
Although there does not seem to be any limit for us, it seems to be a good practice to clean up after ourselves.