Docker build hook to add label info

pull/9/head
Liz Rice 7 years ago
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…
Cancel
Save