NOAA-GSL / ExascaleWorkflowSandbox

Other
2 stars 2 forks source link

Accumulation of untagged images in GitHub Packages #68

Closed christopherwharrop-noaa closed 6 months ago

christopherwharrop-noaa commented 6 months ago

We are not yet at a stage where we want to use real version tags for the various containers we are pushing to ghcr.io. For this reason, we continually push our containers tagged as "latest". Unfortunately, GitHub and the Docker build and push action are continually untagging the existing "latest" and then adding a new "latest" every single time we push. The old "latest" containers are not getting deleted, but are accumulating as untagged versions. We now have hundreds of untagged versions of our containers taking up space in GitHub packages. This not only wastes precious space, but could impact other users in NOAA-GSL who all need to live within the space quota for GitHub packages. The old tags need to be removed. Unfortunately, this turns out to be a very tedious operation because there is no way to manually do it with a few simple clicks of the interface; each untagged version must be removed manually, one at a time, and we'd have to do that hundreds of times.

An automated way of managing this needs to be implemented so that these untagged versions of our packages do not accumulate, eventually causing us to run out of space.