-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
60 lines (53 loc) · 1.22 KB
/
.goreleaser.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
project_name: binary-patch
release:
github:
owner: szuecs
name: binary-patch
builds:
- main : ./cmd/binary-patch/
binary: binary-patch
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
- VERSION=$(git describe --tags --always --dirty)
#ldflags: -X main.version={{ .Version }} # works
#ldflags: -X main.version={{ .Env.VERSION }}
#ldflags: -X main.version=$(VERSION) -X main.date=$(shell date -u '+%Y-%m-%d_%I:%M%p') -X main.commit=$(shell git rev-parse HEAD)
- main : ./cmd/binary-patch-server/
binary: binary-patch-server
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
#ldflags: -X main.version=$(VERSION) -X main.date=$(shell date -u '+%Y-%m-%d_%I:%M%p') -X main.commit=$(shell git rev-parse HEAD)
env:
- CGO_ENABLED=0
- GO111MODULE=on
- VERSION=$(git describe --tags --always --dirty)
archive:
files:
- README.md
- LICENSE
- Makefile
- config.yaml.sample
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^doc'
- '^test'
sign:
artifacts: checksum