From 9edee46dcf2eeec2aefa961ac25ae1cccbaa732d Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Thu, 30 Aug 2018 10:16:01 -0400 Subject: [PATCH] client/docker: Added hook to display build info --- client/hooks/build | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 client/hooks/build diff --git a/client/hooks/build b/client/hooks/build new file mode 100755 index 0000000..8434e52 --- /dev/null +++ b/client/hooks/build @@ -0,0 +1,4 @@ +#!/bin/bash +BUILD_INFO=docker-$(echo $SOURCE_COMMIT | cut -c1-7)-auto +echo "Using BUILD_INFO=$BUILD_INFO" +docker build --build-arg BUILD_INFO=$BUILD_INFO -f $DOCKERFILE_PATH -t $IMAGE_NAME .