[Makefile] Allow specifying VERSION as an env var
This makes specifying the VERSION when building native operating system packages require less hacks. Refs: #811
This commit is contained in:
parent
af0d9cebd1
commit
4630f69f17
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ ORG_PATH=github.com/coreos
|
|||||||
REPO_PATH=$(ORG_PATH)/$(PROJ)
|
REPO_PATH=$(ORG_PATH)/$(PROJ)
|
||||||
export PATH := $(PWD)/bin:$(PATH)
|
export PATH := $(PWD)/bin:$(PATH)
|
||||||
|
|
||||||
VERSION=$(shell ./scripts/git-version)
|
VERSION ?= $(shell ./scripts/git-version)
|
||||||
|
|
||||||
DOCKER_REPO=quay.io/coreos/dex
|
DOCKER_REPO=quay.io/coreos/dex
|
||||||
DOCKER_IMAGE=$(DOCKER_REPO):$(VERSION)
|
DOCKER_IMAGE=$(DOCKER_REPO):$(VERSION)
|
||||||
|
Reference in New Issue
Block a user