diff --git a/hooks/build b/hooks/build index e69de29..a945e03 100644 --- a/hooks/build +++ b/hooks/build @@ -0,0 +1,6 @@ +#!/bin/bash + +# $IMAGE_NAME var is injected into the build so the tag is correct. +docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ + --build-arg VCS_REF=`git rev-parse --short HEAD` \ + -t $IMAGE_NAME .