Add Docker Labels from label-schema.org

This commit is contained in:
Carlos Álvaro
2018-12-29 10:58:40 +01:00
parent 3d12fad813
commit 2a0b999568
2 changed files with 25 additions and 4 deletions

9
hooks/build Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Docker Daemon Build Hook
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build \
--build-arg=BUILD_DATE="$(date +"%Y-%m-%d %H:%M:%S%:z")" \
--build-arg=VCS_REF="$(git rev-parse --short HEAD)" \
-t ${IMAGE_NAME} .