Skip to content

Commit

Permalink
Merge pull request #7 from udondan/master
Browse files Browse the repository at this point in the history
fixes version number by removing first char (tag has a prepending 'v')
  • Loading branch information
udondan authored Jul 17, 2017
2 parents 9307555 + f429daa commit 2e5ee9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Custom build command which passes the git tag as build argument "v"
docker build --build-arg "v=$SOURCE_BRANCH" --file Dockerfile \
--tag "$IMAGE_NAME" . || exit
docker build --build-arg "v=${SOURCE_BRANCH:1}" --file Dockerfile \
--tag "${IMAGE_NAME}" . || exit

0 comments on commit 2e5ee9d

Please sign in to comment.