github.com/xiaobinqt/libcompose@v1.1.0/hack/release (about) 1 #!/bin/bash 2 set -e 3 if [ -z "$1" ]; then 4 echo "Pass the version number as the first arg. E.g.: hack/release 1.2.3" 5 exit 1 6 fi 7 VERSION=$1 8 if [ -z "$GITHUB_TOKEN" ]; then 9 echo "GITHUB_TOKEN must be set for github-release" 10 exit 1 11 fi 12 13 hack/build 14 15 docker run --rm -v `pwd`:/go/src/github.com/xiaobinqt/libcompose docker-compose ./hack/generate-sums 16 17 git tag $VERSION 18 git push --tags 19 docker run --rm -e GITHUB_TOKEN docker-compose github-release release \ 20 --user docker \ 21 --repo libcompose \ 22 --tag $VERSION \ 23 --name $VERSION \ 24 --description "" \ 25 --pre-release 26 for BINARY in docker-compose_*; do 27 docker run --rm -e GITHUB_TOKEN -v `pwd`:/go/src/github.com/xiaobinqt/libcompose \ 28 docker-compose github-release upload \ 29 --user docker \ 30 --repo libcompose \ 31 --tag $VERSION \ 32 --name $BINARY \ 33 --file $BINARY 34 done