Skip to content

Commit 33ee5a3

Browse files
committed
Make sure binaries are statically linked
1 parent c8f41db commit 33ee5a3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ docker-run-release:
4545

4646
.PHONY: dist
4747
dist: export COPYFILE_DISABLE=1 #teach OSX tar to not put ._* files in tar archive
48+
dist: export CGO_ENABLED=0
4849
dist:
4950
rm -rf build/diff/* release/*
5051
mkdir -p build/diff/bin release/

plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "diff"
22
# Version is the version of Helm plus the number of official builds for this
33
# plugin
4-
version: "2.11.0+4"
4+
version: "2.11.0+5"
55
usage: "Preview helm upgrade changes as a diff"
66
description: "Preview helm upgrade changes as a diff"
77
useTunnel: true

scripts/release.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
#!/usr/bin/env bash
2+
set -x
23

3-
go get github.com/aktau/github-release
4+
if [ ! -f bin/github-releae ]; then
5+
OS=$(uname)
6+
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
7+
fi
48

59
user=databus23
610
repo=helm-diff
711
tag=$1
812
commit=$2
913

10-
github-release release -u $user -r $repo -t $tag -c $commit -n $tag
14+
bin/github-release release -u $user -r $repo -t $tag -c $commit -n $tag
1115

1216
for f in $(ls release); do
13-
github-release upload -u $user -r $repo -t $tag -n $f -f release/$f
17+
bin/github-release upload -u $user -r $repo -t $tag -n $f -f release/$f
1418
done

0 commit comments

Comments
 (0)