File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ default: build
55build : check_go_version
66 go build -o ./bin/kubectl-check-ownerreferences $(shell ./build/print-ldflags.sh) ./
77
8+ build-release : check_go_version
9+ rm -fr ./bin
10+ mkdir -p ./bin/darwin/amd64
11+ mkdir -p ./bin/linux/amd64
12+ GOOS=darwin GOARCH=amd64 go build -trimpath -o ./bin/darwin/amd64/kubectl-check-ownerreferences $(shell ./build/print-ldflags.sh) ./
13+ GOOS=linux GOARCH=amd64 go build -trimpath -o ./bin/linux/amd64/kubectl-check-ownerreferences $(shell ./build/print-ldflags.sh) ./
14+ tar -cvzf ./bin/kubectl-check-ownerreferences-darwin-amd64.tar.gz LICENSE -C ./bin/darwin/amd64 kubectl-check-ownerreferences
15+ tar -cvzf ./bin/kubectl-check-ownerreferences-linux-amd64.tar.gz LICENSE -C ./bin/linux/amd64 kubectl-check-ownerreferences
16+
817install : check_go_version
918 go install $(shell ./build/print-ldflags.sh) ./
1019
You can’t perform that action at this time.
0 commit comments