if both NAME and BASE_IMAGE are defined, don't append variant to baseimage

This commit is contained in:
Matyas Markovics
2019-03-13 01:00:13 +01:00
parent 4f65f0a270
commit 089258a746

View File

@@ -1,11 +1,11 @@
NAME ?= phusion/baseimage
VERSION ?= 0.11
ifeq ($(origin BASE_IMAGE), undefined)
ifndef BASE_IMAGE
BASE_IMAGE = ubuntu:18.04
NAME ?= phusion/baseimage
else ifdef NAME
else
NAME := $(NAME)-$(subst :,-,${BASE_IMAGE})
NAME = phusion/baseimage-$(subst :,-,${BASE_IMAGE})
endif
VERSION ?= 0.11
.PHONY: all build test tag_latest release ssh