File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ VERSION ?= $(shell git describe --tags --always --dirty)
8
8
GOPKGS = $(shell go list ./... | grep -v /vendor/)
9
9
BUILD_FLAGS ?=
10
10
LDFLAGS ?= -X github.com/grepplabs/kafka-proxy/config.Version=$(VERSION ) -w -s
11
+ TAG ?= "v0.0.1"
11
12
12
13
PLATFORM ?= $(shell uname -s)
13
14
ifeq ($(PLATFORM ) , Darwin)
@@ -68,6 +69,13 @@ build.docker-build.osx:
68
69
docker rm $$buildContainer ;\
69
70
docker rmi $$buildContainerName ;\
70
71
72
+ release : clean build.linux build/osx/$(BINARY )
73
+ git tag $(TAG ) && git push --tags
74
+ github-release release -u grepplabs -r $(BINARY ) --tag $(TAG )
75
+ github-release upload -u grepplabs -r $(BINARY ) -t $(TAG ) -f build/linux/$(BINARY ) -n linux/amd64/$(BINARY )
76
+ github-release upload -u grepplabs -r $(BINARY ) -t $(TAG ) -f build/osx/$(BINARY ) -n darwin/amd64/$(BINARY )
77
+ github-release info -u grepplabs -r $(BINARY )
78
+
71
79
protoc.auth :
72
80
protoc -I plugin/auth/proto/ plugin/auth/proto/auth.proto --go_out=plugins=grpc:plugin/auth/proto/
73
81
You can’t perform that action at this time.
0 commit comments