1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-25 09:28:16 +00:00
kube-bench/hooks/build

8 lines
324 B
Plaintext
Raw Normal View History

2017-06-22 15:22:54 +00:00
#!/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` \
--build-arg KUBEBENCH_VERSION=`git describe --tags --abbrev=0` \
2017-06-22 15:22:54 +00:00
-t $IMAGE_NAME .