From 8c4ada4457996c800ada57ba7b411487225529bd Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Mon, 9 Apr 2018 20:08:55 +0900 Subject: [PATCH] Allow overriding docker repository ORG name --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9ad1ed53..c02d0b2a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -ORG := $(shell basename $(realpath ..)) +ORG ?= $(shell basename $(realpath ..)) PKGS := $(shell go list ./... | grep -v /vendor/) build: @@ -42,13 +42,13 @@ release: pristine cross .PHONY: release image: cross - docker build -t quay.io/roboll/helmfile:${TAG} . + docker build -t quay.io/${ORG}/helmfile:${TAG} . run: image - docker run --rm -it -t quay.io/roboll/helmfile:${TAG} sh + docker run --rm -it -t quay.io/${ORG}/helmfile:${TAG} sh push: image - docker push quay.io/roboll/helmfile:${TAG} + docker push quay.io/${ORG}/helmfile:${TAG} tools: go get -u github.com/tcnksm/ghr github.com/mitchellh/gox