aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-03 15:39:39 +0000
committerHarald Welte <laforge@gnumonks.org>2018-06-03 15:54:34 +0000
commita2e28ef91f16faa1f42f554a8c7dba9e88644311 (patch)
tree758bbf6a9318e3cea89badadb4d603851f7c1339 /make
parent61145cf08673254867d132ace870dd285ed8b8ae (diff)
Makefile: Allow override of REGISTRY/USERNAME/NAME/IMAGE
Diffstat (limited to 'make')
-rw-r--r--make/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/make/Makefile b/make/Makefile
index f492d60..d04b1c2 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -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