From 8780e5cb5920bf03a1ccd50becc80be59887845f Mon Sep 17 00:00:00 2001
From: Roberto Rojas <robertojrojas@gmail.com>
Date: Wed, 27 Nov 2019 15:06:42 -0500
Subject: [PATCH] adds kube-bench version to docker build hook (#524)

---
 hooks/build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hooks/build b/hooks/build
index a945e03..a5891df 100755
--- a/hooks/build
+++ b/hooks/build
@@ -3,4 +3,5 @@
 # $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` \
+             --build-arg KUBEBENCH_VERSION=`git describe --tags --abbrev=0` \
              -t $IMAGE_NAME .
-- 
GitLab