forked from segmentio/chamber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version := $$CIRCLE_TAG
release: gh-release clean dist
govendor sync
github-release release \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
--name $(version)
github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
--name chamber-$(version)-darwin-amd64 \
--file dist/chamber-$(version)-darwin-amd64
github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
--name chamber-$(version)-linux-amd64 \
--file dist/chamber-$(version)-linux-amd64
clean:
rm -rf ./dist
dist:
mkdir dist
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o dist/chamber-$(version)-darwin-amd64
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o dist/chamber-$(version)-linux-amd64
gh-release:
go get -u github.com/aktau/github-release
govendor:
go get -u github.com/kardianos/govendor