I'm working on CI tool to build new docker images and then push them to our registry in AWS ECR. However, I just noticed that I have built an image several times an image that didn't change. This means that I have created and push several tags for the same image id. I would like to avoid spamming our registry with redundant tags. my question is:
is there a way to check the registry for an image id before pushing the image that I just built?