Merge pull request #893 from ehazlett/add-sum-release

adds md5 and sha256 for binaries on release
This commit is contained in:
Evan Hazlett 2015-03-31 11:51:44 -04:00
commit be9a13e784
3 changed files with 12 additions and 2 deletions

View File

@ -15,4 +15,4 @@ fi
docker build -t docker-machine . docker build -t docker-machine .
rm -f docker-machine* rm -f docker-machine*
exec docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" -output="docker-machine_{{.OS}}-{{.Arch}}" -ldflags="-w -X github.com/docker/machine/version.GITCOMMIT `git rev-parse --short HEAD`" docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" -output="docker-machine_{{.OS}}-{{.Arch}}" -ldflags="-w -X github.com/docker/machine/version.GITCOMMIT `git rev-parse --short HEAD`"

8
script/generate-sums Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
for BINARY in docker-machine_*; do
sha256sum $BINARY > $BINARY.sha256
md5sum $BINARY >> $BINARY.md5
done

View File

@ -11,6 +11,9 @@ if [ -z "$GITHUB_TOKEN" ]; then
fi fi
script/build script/build
docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine ./script/generate-sums
git tag $VERSION git tag $VERSION
git push --tags git push --tags
docker run --rm -e GITHUB_TOKEN docker-machine github-release release \ docker run --rm -e GITHUB_TOKEN docker-machine github-release release \
@ -29,4 +32,3 @@ for BINARY in docker-machine_*; do
--name $BINARY \ --name $BINARY \
--file $BINARY --file $BINARY
done done