We have a scenario where we build and push a docker image early in the deploy pipeline. We tag it with the git SHA.
After deploy, we want to tag this image with latest. I have two steps in the post deploy build that look like:
- run: | docker tag \ HOST/elixir-umbrella-cypress-runner:$CIRCLE_SHA1 \ HOST/elixir-umbrella-cypress-runner:latest - run: docker push HOST/elixir-umbrella-cypress-runner:latest
This works sometimes. But sometimes I get this error:
I guess it’s because the image is not on the host in this case? I tried using docker pull to get it but that just hangs forever. Please advise.