Skip to content

Commit

Permalink
Add dockerhub build hook
Browse files Browse the repository at this point in the history
This should fix raiden-network#5049

In order to build the proper raiden version from `Dockerfile`, we need
to pass the intended `RAIDENVERSION` build argument. According to
docker/hub-feedback#508 the current way of
doing this is via build hook.
dockerhub has the `SOURCE_BRANCH` environment variable available, that
should translate just fine to the values we want in `RAIDENVERSION`.
  • Loading branch information
konradkonrad committed Oct 8, 2019
1 parent cdffdde commit ddb7c32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker build --build-arg RAIDENVERSION=${SOURCE_BRANCH} -t $IMAGE_NAME .

0 comments on commit ddb7c32

Please sign in to comment.