Skip to content

Commit

Permalink
added hook to set gitRef and gitHash during go build
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Nov 16, 2020
1 parent 8381a41 commit c8baf5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deployment/hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

docker build \
--build-arg SOURCE_BRANCH=$SOURCE_BRANCH \
--build-arg SOURCE_COMMIT=$SOURCE_COMMIT \
-f Dockerfile \
-t $IMAGE_NAME \
..

0 comments on commit c8baf5c

Please sign in to comment.