Commit 0d7c131e authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

docker: only retag existing images in make docker-retag

parent 214c3666
...@@ -61,7 +61,8 @@ docker-images-tofino: ...@@ -61,7 +61,8 @@ docker-images-tofino:
docker-retag: docker-retag:
for i in $(DOCKER_IMAGES) ; do \ for i in $(DOCKER_IMAGES) ; do \
docker image inspect $$i >/dev/null && \ docker image inspect \
$(DOCKER_REGISTRY_FROM)$${i}$(DOCKER_TAG_FROM) >/dev/null && \
docker tag $(DOCKER_REGISTRY_FROM)$${i}$(DOCKER_TAG_FROM) \ docker tag $(DOCKER_REGISTRY_FROM)$${i}$(DOCKER_TAG_FROM) \
$(DOCKER_REGISTRY)$${i}$(DOCKER_TAG) ; \ $(DOCKER_REGISTRY)$${i}$(DOCKER_TAG) ; \
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment