forked from Docker/baseimage-docker
if both NAME and BASE_IMAGE are defined, don't append variant to baseimage
This commit is contained in:
10
Makefile
10
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user