1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

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 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