CDCgov / pyrenew-hew

Models and infrastructure for forecasting COVID-19 and Flu hospitalizations using wastewater data with PyRenew
Apache License 2.0
5 stars 0 forks source link

Automatically delete container when Pull Requests are merged #132

Open damonbayer opened 1 week ago

damonbayer commented 1 week ago

The container registry is filling up with tags from merged PR's. Is it possible to automatically delete these when the PR is merged?

CleanShot 2024-11-18 at 09 39 29@2x

gvegayon commented 3 days ago

After doing some research, it seems that there's no registry-agnostic way of deleting images. So my initial plan of doing this in the new action that builds the container in two steps (link) won't be supporting that for the moment. The proposed solution: Add another workflow that deletes the image on closing a PR (ref). I'll start working on that ASAP.