From 2b8756ac165aa22bcd48087f5a4b3414b00739bd Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Fri, 26 May 2017 15:43:59 -0600 Subject: [PATCH] ima-namespacing utils: use ORG pattern as in other makefiles Signed-off-by: Tycho Andersen --- projects/ima-namespace/ima-utils/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/ima-namespace/ima-utils/Makefile b/projects/ima-namespace/ima-utils/Makefile index edac27939..7b04aca5c 100644 --- a/projects/ima-namespace/ima-utils/Makefile +++ b/projects/ima-namespace/ima-utils/Makefile @@ -3,13 +3,14 @@ default: push IMAGE=ima-utils DEPS=Dockerfile +ORG?=linuxkit HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}') tag: $(DEPS) - docker pull linuxkit/$(IMAGE):$(HASH) || \ - docker build --no-cache -t linuxkit/$(IMAGE):$(HASH) . + docker pull $(ORG)/$(IMAGE):$(HASH) || \ + docker build --no-cache -t $(ORG)/$(IMAGE):$(HASH) . push: tag - docker pull linuxkit/$(IMAGE):$(HASH) || \ - docker push linuxkit/$(IMAGE):$(HASH) + docker pull $(ORG)/$(IMAGE):$(HASH) || \ + docker push $(ORG)/$(IMAGE):$(HASH)