1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-29 11:28:14 +00:00
kube-bench/hooks/build
2017-06-22 16:22:54 +01:00

7 lines
246 B
Bash

#!/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 .