Use DOCKER_TAG instead of CACHE_TAG to know which tag is being built.

Change-Id: I36e2b59aefe96fa1868a24f7440e915fd9da0f25
(cherry picked from commit 0e7212d00ce3020c2912eddd91b756355216eb13)
diff --git a/docker/hooks/build b/docker/hooks/build
index 618a914..2fee217 100755
--- a/docker/hooks/build
+++ b/docker/hooks/build
@@ -3,6 +3,8 @@
 echo "=> Using custom build hook to add build arguments"
 echo "=> set DEBUG=true to see debug information"
 
+TAG=${DOCKER_TAG:-latest}
+
 if [ "$DEBUG" == "true" ]; then
   env | sort
 fi