Closed paololazzari closed 5 months ago
When I push the fourth one, it would be useful to be able to delete the oldest one so that my repository only ever has 3 images in it.
This is out of scope for this action and should be something handled on the registry itself. Check if you registry supports configuration of retention policy/garbage collection on images/tags like ACR does: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-soft-delete-policy
Description
Imagine I had a repository which had 3 images in it.
When I push the fourth one, it would be useful to be able to delete the oldest one so that my repository only ever has 3 images in it.
Something like:
Perhaps considering this is to an extent a destructive operation it could live in a separate action.