client/docker: Added hook to display build info

This commit is contained in:
Shyam Sunder 2018-08-30 10:16:01 -04:00
parent f36cdc8719
commit 9edee46dcf

4
client/hooks/build Executable file
View file

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