1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-28 02:49:10 +00:00

Docker build hook to add label info

This commit is contained in:
Liz Rice 2017-06-22 16:22:54 +01:00
parent 74ca02298e
commit e69ccba8c7

View File

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