Skip to content

Commit

Permalink
Create build
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax authored Aug 25, 2018
1 parent 595d397 commit 725e5f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/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”` \
-t $IMAGE_NAME .

0 comments on commit 725e5f0

Please sign in to comment.