opendatahub-io / notebooks

Notebook images for ODH
Apache License 2.0
15 stars 51 forks source link

Implement ghcr.io expiration for images and cache layers #568

Closed jiridanek closed 1 week ago

jiridanek commented 3 weeks ago

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.

caponetto commented 3 weeks ago

One more option: https://github.com/marketplace/actions/ghcr-pruning

jiridanek commented 3 weeks ago

@caponetto do you have a favorite? I'm unfamiliar with the options, so I'm inclined to pick yours

caponetto commented 2 weeks ago

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.