1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-23 08:38:06 +00:00

adds kube-bench version to docker build hook (#524)

This commit is contained in:
Roberto Rojas 2019-11-27 15:06:42 -05:00 committed by Liz Rice
parent 230d286708
commit 8780e5cb59

View File

@ -3,4 +3,5 @@
# $IMAGE_NAME var is injected into the build so the tag is correct. # $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"` \ 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 VCS_REF=`git rev-parse --short HEAD` \
--build-arg KUBEBENCH_VERSION=`git describe --tags --abbrev=0` \
-t $IMAGE_NAME . -t $IMAGE_NAME .