Skip to content

Commit

Permalink
Make sure binaries are statically linked
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed May 20, 2019
1 parent c8f41db commit 33ee5a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ docker-run-release:

.PHONY: dist
dist: export COPYFILE_DISABLE=1 #teach OSX tar to not put ._* files in tar archive
dist: export CGO_ENABLED=0
dist:
rm -rf build/diff/* release/*
mkdir -p build/diff/bin release/
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "diff"
# Version is the version of Helm plus the number of official builds for this
# plugin
version: "2.11.0+4"
version: "2.11.0+5"
usage: "Preview helm upgrade changes as a diff"
description: "Preview helm upgrade changes as a diff"
useTunnel: true
Expand Down
10 changes: 7 additions & 3 deletions scripts/release.sh
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

0 comments on commit 33ee5a3

Please sign in to comment.