Skip to content

Commit

Permalink
Added build hook
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Jan 8, 2019
1 parent aeaa060 commit 17264e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VERSION=`head -n1 requirements.pip | cut -d '=' -f 3` \
-t $IMAGE_NAME .

0 comments on commit 17264e3

Please sign in to comment.