Cleaning up old image tags

Hi all,

I just updated my build system to push a new tag every build. I love the concept of an immutable tag, and the ability to feed the specific image from a specific build to my deployer.

But, the image tags will build up quickly. Are there any good techniques for automatically culling tags according to a pattern?

Thank you,
Andrew