Files
docker-machine/script/release
T

35 lines
879 B
Bash
Raw Normal View History

2014-12-09 16:45:23 -08:00
#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "Pass the version number as the first arg. E.g.: script/release 1.2.3"
exit 1
fi
VERSION=$1
if [ -z "$GITHUB_TOKEN" ]; then
echo "GITHUB_TOKEN must be set for github-release"
exit 1
fi
script/build
2015-03-27 07:38:35 -07:00
2015-03-30 13:48:14 -04:00
docker run --rm -v `pwd`:/go/src/github.com/docker/machine docker-machine ./script/generate-sums
2014-12-09 16:45:23 -08:00
git tag $VERSION
git push --tags
docker run --rm -e GITHUB_TOKEN docker-machine github-release release \
--user docker \
--repo machine \
--tag $VERSION \
--name $VERSION \
--description "" \
2015-02-10 16:44:32 -05:00
--pre-release
2015-01-22 18:05:52 +00:00
for BINARY in docker-machine_*; do
2014-12-09 16:45:23 -08:00
docker run --rm -e GITHUB_TOKEN -v `pwd`:/go/src/github.com/docker/machine \
docker-machine github-release upload \
--user docker \
--repo machine \
--tag $VERSION \
--name $BINARY \
--file $BINARY
done