I want to push a Docker image to AWS multiple times with incremented version numbers. I’m basically wanting to clone the same image with a different SHA each time. I’m running into an issue where my repo is showing the version numbers on the same line, because they share the same SHA. Do I just need to change something within the files, or can this be done during the build/tagging process?
Here is what my repo looks like vs what I want it to look like.
My AWS repo:
Demo AWS repo:
I’m not finding anything specific to this problem. Any links or assistance would be appreciated!
I’m doing:
docker build -t <tag>:1.0
docker tag <tag>:1.0 xxxxx.dkr.ecr.....<tag>:1.0
docker push xxxxx.dkr.ecr.....<tag>:1.0
and doing it all again with 1.1 appended instead of 1.0
1