Makefile: Allow override of REGISTRY/USERNAME/NAME/IMAGE

Change-Id: If2e3cc7693ce5e7c1c95d2f81e302c72bb4230be
This commit is contained in:
Harald Welte 2018-06-03 15:39:39 +00:00
parent 61145cf086
commit a2e28ef91f
1 changed files with 6 additions and 6 deletions

View File

@ -13,15 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
REGISTRY_HOST=docker.io
USERNAME=$(USER)
NAME=$(shell basename $(CURDIR))
REGISTRY_HOST?=docker.io
USERNAME?=$(USER)
NAME?=$(shell basename $(CURDIR))
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)
TAG=$(shell . $(RELEASE_SUPPORT); getTag)
VERSION?=$(shell . $(RELEASE_SUPPORT) ; getVersion)
TAG?=$(shell . $(RELEASE_SUPPORT); getTag)
SHELL=/bin/bash