Makefile: Allow override of REGISTRY/USERNAME/NAME/IMAGE
Change-Id: If2e3cc7693ce5e7c1c95d2f81e302c72bb4230be
This commit is contained in:
parent
61145cf086
commit
a2e28ef91f
|
@ -13,15 +13,15 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
REGISTRY_HOST=docker.io
|
REGISTRY_HOST?=docker.io
|
||||||
USERNAME=$(USER)
|
USERNAME?=$(USER)
|
||||||
NAME=$(shell basename $(CURDIR))
|
NAME?=$(shell basename $(CURDIR))
|
||||||
|
|
||||||
RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support
|
RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support
|
||||||
IMAGE=$(REGISTRY_HOST)/$(USERNAME)/$(NAME)
|
IMAGE?=$(REGISTRY_HOST)/$(NAME)
|
||||||
|
|
||||||
VERSION=$(shell . $(RELEASE_SUPPORT) ; getVersion)
|
VERSION?=$(shell . $(RELEASE_SUPPORT) ; getVersion)
|
||||||
TAG=$(shell . $(RELEASE_SUPPORT); getTag)
|
TAG?=$(shell . $(RELEASE_SUPPORT); getTag)
|
||||||
|
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue