release: script the building of release artifacts

This commit is contained in:
Brian Waldon 2015-12-16 14:28:34 -08:00
parent c3dd998441
commit 80a71d84c2

21
release Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash -e
VERSION=$(./git-version)
GOARCH=amd64
OSS=( "darwin" "linux" )
for GOOS in ${OSS[@]}; do
name=dex-$VERSION-$GOOS-$GOARCH
rm -fr $name.tar.gz $name/
mkdir $name
GOOS=$GOOS GOARCH=$GOARCH ./build
cp bin/dexctl $name/
tar -czf $name.tar.gz $name/
echo "Created ${name}.tar.gz"
rm -fr $name/
done