Skip to content

Commit 306ce9a

Browse files
committed
add make dist target
1 parent b186e6a commit 306ce9a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
diff
22
vendor/
3+
release/
4+
.envrc

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,18 @@ ifndef HAS_GLIDE
2020
go get -u github.com/Masterminds/glide
2121
endif
2222
glide install --strip-vendor
23+
24+
.PHONY: dist
25+
dist:
26+
GOOS=linux GOARCH=amd64 go build -o diff -ldflags="$(LDFLAGS)"
27+
tar -zcvf release/helm-template-linux.tgz diff README.md LICENSE plugin.yaml
28+
GOOS=darwin GOARCH=amd64 go build -o diff -ldflags="$(LDFLAGS)"
29+
tar -zcvf release/helm-template-macos.tgz diff README.md LICENSE plugin.yaml
30+
rm diff
31+
32+
.PHONY: release
33+
release: dist
34+
ifndef GITHUB_ACCESS_TOKEN
35+
$(error GITHUB_ACCESS_TOKEN is undefined)
36+
endif
37+
gh-release create databus23/helm-diff $(VERSION) master

0 commit comments

Comments
 (0)