From 32beb5d34ff0c79362d4b668e91fe2563bd8a818 Mon Sep 17 00:00:00 2001 From: Rohith Date: Thu, 28 Apr 2016 00:40:08 +0100 Subject: [PATCH] - update the Makefile, fixing on the docker build and push --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c5248cc..9847bb5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ NAME=vault-sidekick -AUTHOR=gambol99 +AUTHOR ?= ukhomeofficedigital +REGISTRY ?= quay.io HARDWARE=$(shell uname -m) VERSION=$(shell awk '/Version =/ { print $$3 }' main.go | sed 's/"//g') VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr @@ -21,12 +22,11 @@ static: docker: static @echo "--> Building the docker image" - docker build -t ${AUTHOR}/${NAME}:${VERSION} . + docker build -t ${REGISTRY}/${AUTHOR}/${NAME}:${VERSION} . push: docker @echo "--> Pushing the image to docker.io" - docker tag -f ${AUTHOR}/${NAME}:${VERSION} docker.io/${AUTHOR}/${NAME}:${VERSION} - docker push docker.io/${AUTHOR}/${NAME}:${VERSION} + docker push ${REGISTRY}/${AUTHOR}/${NAME}:${VERSION} release: static mkdir -p release