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

Remove untagged private images #7

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

SeanTAllen
Copy link
Member

Every night, we create a new "latest" image. This ends up leaving a lot of junk behind in the GitHub package UI for our private image that is hosted in the GitHub container registry. There's hundreds of older, never to be used, former "most recent nightly" images. Each is untagged and won't ever be used again (if it was ever used).

This commit adds a steps in the nightly creation workflow to delete all untagged 'library-documentation-action-v2' images except the most recent. We leave one as it is possible that something might reasonably be in the process of pulling down "latest" while we are doing the deletion and don't want to whack any layers that might be needed for that.

This change removes a ton of noise of the GitHub packages UI for 'library-documentation-action-v2' and also stops wasting storage space on GitHub for what we consider to be "junk images".

@SeanTAllen SeanTAllen requested a review from a team August 22, 2023 12:31
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 22, 2023
@SeanTAllen SeanTAllen force-pushed the prune-old-nightly-images branch 2 times, most recently from 847e140 to 547b049 Compare August 22, 2023 15:45
Every night, we create a new "latest" image. This ends up leaving a
lot of junk behind in the GitHub package UI for our private image
that is hosted in the GitHub container registry. There's hundreds
of older, never to be used, former "most recent nightly" images.
Each is untagged and won't ever be used again (if it was ever used).

This commit adds a steps in the nightly creation workflow to delete
all untagged 'library-documentation-action-v2' images except the
most recent. We leave one as it is possible that something might
reasonably be in the process of pulling down "latest" while we are
doing the deletion and don't want to whack any layers that might
be needed for that.

This change removes a ton of noise of the GitHub packages UI for
'library-documentation-action-v2' and also stops wasting storage
space on GitHub for what we consider to be "junk images".
@SeanTAllen SeanTAllen merged commit e045448 into main Aug 22, 2023
8 checks passed
@SeanTAllen SeanTAllen deleted the prune-old-nightly-images branch August 22, 2023 18:07
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Aug 22, 2023
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

Successfully merging this pull request may close these issues.

3 participants