forked from mystiq/dex
release: script the building of release artifacts
This commit is contained in:
parent
c3dd998441
commit
80a71d84c2
1 changed files with 21 additions and 0 deletions
21
release
Executable file
21
release
Executable 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
|
Loading…
Reference in a new issue