mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-28 10:58:20 +00:00
Docker build hook to add label info
This commit is contained in:
parent
74ca02298e
commit
e69ccba8c7
@ -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 .
|
Loading…
Reference in New Issue
Block a user