Allow overriding docker repository ORG name

This commit is contained in:
Yusuke KUOKA 2018-04-09 20:08:55 +09:00
parent 35cb4d4032
commit 8c4ada4457
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
ORG := $(shell basename $(realpath ..)) ORG ?= $(shell basename $(realpath ..))
PKGS := $(shell go list ./... | grep -v /vendor/) PKGS := $(shell go list ./... | grep -v /vendor/)
build: build:
@ -42,13 +42,13 @@ release: pristine cross
.PHONY: release .PHONY: release
image: cross image: cross
docker build -t quay.io/roboll/helmfile:${TAG} . docker build -t quay.io/${ORG}/helmfile:${TAG} .
run: image 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 push: image
docker push quay.io/roboll/helmfile:${TAG} docker push quay.io/${ORG}/helmfile:${TAG}
tools: tools:
go get -u github.com/tcnksm/ghr github.com/mitchellh/gox go get -u github.com/tcnksm/ghr github.com/mitchellh/gox