Skip to content

Commit

Permalink
not an amazing solution for #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Corso committed Nov 22, 2016
1 parent 2cdd519 commit 95c61f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# a hack to generate releases like other prometheus projects
# use like this:
# VERSION=1.0.1 ./release.sh


rm -rf "bin/sachet-$VERSION.linux-amd64"
mkdir "bin/sachet-$VERSION.linux-amd64"
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o "bin/sachet-$VERSION.linux-amd64/sachet"
cd bin
tar -zcvf "sachet-$VERSION.linux-amd64.tar.gz" "sachet-$VERSION.linux-amd64"

0 comments on commit 95c61f5

Please sign in to comment.