Add label to image build

This ps allows labels to be added to the docker image at build
time

Change-Id: Ia4c21c790bfc10a2a433fde7df5795ff57578fe6
This commit is contained in:
Stacey Fletcher 2018-02-17 16:22:33 -06:00
parent afc39b6b62
commit 28a866f014
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ DOCKER_REGISTRY ?= quay.io
IMAGE_PREFIX ?= attcomdev
SHORT_NAME ?= armada
HELM ?= helm
LABEL ?= commit-id
PYTHON = python3
APP = armada
CHART = charts/armada
@ -60,7 +61,7 @@ check-tox:
.PHONY: docker-build
images: check-docker
docker build --rm -t ${IMAGE} .
docker build --rm -t ${IMAGE} --label $(LABEL) .
.PHONY: dry-run
dry-run: clean