Raw File
#!/bin/bash

# $IMAGE_NAME var is injected into the build so the tag is correct.

echo "Build hook running"
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
             --build-arg GIT_REF=`git rev-parse --short HEAD` \
             -t $IMAGE_NAME .
back to top