Correcting Syntax for Docker
[osm/devops.git] / docker / mk / Makefile.include
index e151748..995cbdf 100644 (file)
@@ -26,6 +26,7 @@ RELEASE         ?= ReleaseEIGHT-daily
 REPOSITORY_KEY  ?= OSM%20ETSI%20Release%20Key.gpg
 REPOSITORY      ?= testing
 NO_CACHE        ?= --no-cache
+DOCKER_REGISTRY ?= ""
 
 LOWER_MDG = $(shell echo $(MDG) | tr '[:upper:]' '[:lower:]')
 
@@ -81,7 +82,7 @@ clean:
        rm -f $(MKBUILD)/.dep*
 
 tag:
-       docker tag opensourcemano/$(CONTAINER_NAME):$(INPUT_TAG) opensourcemano/$(LOWER_MDG):$(TAG)
+       docker tag opensourcemano/$(CONTAINER_NAME):$(INPUT_TAG) $(DOCKER_REGISTRY)opensourcemano/$(LOWER_MDG):$(TAG)
 
 push: tag
-       docker push opensourcemano/$(LOWER_MDG):$(TAG)
+       docker push $(DOCKER_REGISTRY)opensourcemano/$(LOWER_MDG):$(TAG)