Allow overriding docker repository ORG name
This commit is contained in:
parent
35cb4d4032
commit
8c4ada4457
8
Makefile
8
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue