-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure binaries are statically linked
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
|
||
go get github.com/aktau/github-release | ||
if [ ! -f bin/github-releae ]; then | ||
OS=$(uname) | ||
curl -L https://github.com/aktau/github-release/releases/download/v0.7.2/$OS-amd64-github-release.tar.bz2 | tar -C bin/ -jvx --strip-components=3 | ||
fi | ||
|
||
user=databus23 | ||
repo=helm-diff | ||
tag=$1 | ||
commit=$2 | ||
|
||
github-release release -u $user -r $repo -t $tag -c $commit -n $tag | ||
bin/github-release release -u $user -r $repo -t $tag -c $commit -n $tag | ||
|
||
for f in $(ls release); do | ||
github-release upload -u $user -r $repo -t $tag -n $f -f release/$f | ||
bin/github-release upload -u $user -r $repo -t $tag -n $f -f release/$f | ||
done |