Skip to content

Commit

Permalink
Ship the release artifacts in a diff folder
Browse files Browse the repository at this point in the history
makes it easier to install into the helm plugin directory with curl
  • Loading branch information
databus23 committed Mar 2, 2017
1 parent 306ce9a commit a6682dd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ endif
glide install --strip-vendor

.PHONY: dist
dist: export COPYFILE_DISABLE=1 #teach OSX tar to not put ._* files in tar archive
dist:
GOOS=linux GOARCH=amd64 go build -o diff -ldflags="$(LDFLAGS)"
tar -zcvf release/helm-template-linux.tgz diff README.md LICENSE plugin.yaml
GOOS=darwin GOARCH=amd64 go build -o diff -ldflags="$(LDFLAGS)"
tar -zcvf release/helm-template-macos.tgz diff README.md LICENSE plugin.yaml
rm diff
mkdir -p build/diff
rm -rf build/diff/* release/*
cp README.md LICENSE plugin.yaml build/diff
GOOS=linux GOARCH=amd64 go build -o build/diff/diff -ldflags="$(LDFLAGS)"
tar -C build/ -zcvf $(CURDIR)/release/helm-template-linux.tgz diff/
GOOS=darwin GOARCH=amd64 go build -o build/diff/diff -ldflags="$(LDFLAGS)"
tar -C build/ -zcvf $(CURDIR)/release/helm-template-macos.tgz diff/

.PHONY: release
release: dist
Expand Down

0 comments on commit a6682dd

Please sign in to comment.