From 28a866f014b339356c8ca0e5ab223cc89337d20e Mon Sep 17 00:00:00 2001 From: Stacey Fletcher Date: Sat, 17 Feb 2018 16:22:33 -0600 Subject: [PATCH] Add label to image build This ps allows labels to be added to the docker image at build time Change-Id: Ia4c21c790bfc10a2a433fde7df5795ff57578fe6 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52c340ca..df271c91 100644 --- a/Makefile +++ b/Makefile @@ -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