GCP Container Registry is built on top of GCP Cloud Storage and one can set quite complex retention policies there.
However there's no such functionality in Container registry and as there's no disctinction between images in Storage (All the image file names are sha-hashes and are located in the same directory in the same bucket) one can't for example set a policy to retain only the last five versions of a single image.
Does anyone know if it's possible to set more complex retention policies to images in GCP and how one should do it?