Skip to content

Commit

Permalink
Actually map the key into Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Aug 21, 2015
1 parent 626b26a commit 2eead17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,17 @@ case "${1:-default}" in

docker-all)
img=${DOCKERIMG:-syncthing/build:latest}
if [ -f /etc/syncthing/syncthing.priv ] ; then
# Default signing key location. If present, pass into Docker so we
# can sign the release from in there.
extra=(-v /etc/syncthing/syncthing.priv:/etc/syncthing/syncthing.priv)
fi

docker run --rm -h syncthing-builder -u $(id -u) -t \
-v $(pwd):/go/src/github.com/syncthing/syncthing \
-w /go/src/github.com/syncthing/syncthing \
-e "STTRACE=$STTRACE" \
${extra[@]-} \
"$img" \
sh -c './build.sh clean \
&& ./build.sh test-cov \
Expand Down

0 comments on commit 2eead17

Please sign in to comment.