bots-house / ghcr-delete-image-action

♻️ Delete GitHub Container Registry image by tag
MIT License
41 stars 19 forks source link

deleting tagged image #172

Open casaroli opened 8 months ago

casaroli commented 8 months ago

I pushed the same image with multiple tags (tag1 and tag2)

Then I run ghcr.-delete-image-action only on tag1

When I try to docker pull image:tag2 it fails with manifest unknown.

It deleted the image even that it was still tagged with some other tag.

I think this action should only delete the tag, and then delete the image only if there are no other tags.

WDYT?

rohanmars commented 5 months ago

I fixed this in a new project. https://github.com/dataaxiom/ghcr-cleanup-action