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
|
ifndef BASE_IMAGE
|
||||||
VERSION ?= 0.11
|
|
||||||
|
|
||||||
ifeq ($(origin BASE_IMAGE), undefined)
|
|
||||||
BASE_IMAGE = ubuntu:18.04
|
BASE_IMAGE = ubuntu:18.04
|
||||||
|
NAME ?= phusion/baseimage
|
||||||
|
else ifdef NAME
|
||||||
else
|
else
|
||||||
NAME := $(NAME)-$(subst :,-,${BASE_IMAGE})
|
NAME = phusion/baseimage-$(subst :,-,${BASE_IMAGE})
|
||||||
endif
|
endif
|
||||||
|
VERSION ?= 0.11
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all build test tag_latest release ssh
|
.PHONY: all build test tag_latest release ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user