Add cleanup pipeline to remove unusable images#51
Conversation
|
See a dry-run here: https://github.com/XRPLF/ci/actions/runs/17984493390. |
mathbunnyru
left a comment
There was a problem hiding this comment.
I have a few questions:
-
Is there a reason why we need to do this at all?
-
Maybe it would be better to eliminate the creation of something we don't need, instead of trying to cleanup?
|
I think there are two sources of untagged images:
Re. 2 I have a TODO item to replace temporary images with tagged, they take way too much time & CPU to be considered temporary. But that will only work if we have a separate |
|
@mathbunnyru any outstanding concerns or are we good to go ahead for now? We can always revisit if no longer rebuilding the GCC images reduces or stops the growth of untagged images being published. |
This PR adds a weekly cleanup job to remove untagged, orphaned, ghost, and partial images.
I compared a few actions, and this one has seen the most recent development and offers many options to get rid of images.
Per the description at https://github.com/dataaxiom/ghcr-cleanup-action:
I tested this workflow first by adding an
on: pushand enabling the dry-run option in the action, to confirm it was finding the correct images to delete.