Added CACHE_DATE arg to force recreating the docker layer during docker build of...
[osm/devops.git] / docker / mk / Makefile.include
index e151748..f31d2ca 100644 (file)
@@ -22,10 +22,11 @@ all: build
 TAG ?= 6
 
 REPOSITORY_BASE ?= http://osm-download.etsi.org/repository/osm/debian
-RELEASE         ?= ReleaseEIGHT-daily
+RELEASE         ?= ReleaseNINE-daily
 REPOSITORY_KEY  ?= OSM%20ETSI%20Release%20Key.gpg
 REPOSITORY      ?= testing
 NO_CACHE        ?= --no-cache
+DOCKER_REGISTRY     ?= ""
 
 LOWER_MDG = $(shell echo $(MDG) | tr '[:upper:]' '[:lower:]')
 
@@ -75,13 +76,14 @@ build: $(MKBUILD) $(DEPS_TARGETS)
                    --build-arg LWUI_VERSION==$(shell cat $(MKBUILD)/.dep_lightui) \
                    --build-arg NGUI_VERSION==$(shell cat $(MKBUILD)/.dep_ngui) \
                    --build-arg TESTS_VERSION==$(shell cat $(MKBUILD)/.dep_tests) \
+                   --build-arg CACHE_DATE==$(shell date -uI) \
                    $(DOCKER_ARGS) .
 
 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)