Add image labels dynamically

This commit is contained in:
Arthur Barr
2017-10-26 13:27:26 +01:00
parent 9a05a1d5d1
commit 721c2e616e
2 changed files with 7 additions and 13 deletions

View File

@@ -126,9 +126,9 @@ define docker-build-mq
--file $2 \
--network build \
--build-arg MQ_URL=http://build:80/$3 \
--build-arg IBM_PRODUCT_ID=$4 \
--build-arg IBM_PRODUCT_NAME=$5 \
--build-arg IBM_PRODUCT_VERSION=$6 \
--label IBM_PRODUCT_ID=$4 \
--label IBM_PRODUCT_NAME=$5 \
--label IBM_PRODUCT_VERSION=$6 \
.
# Stop the web server (will also remove the container)
$(DOCKER) kill $(BUILD_SERVER_CONTAINER)