-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.goreleaser.yml
37 lines (37 loc) · 927 Bytes
/
.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
before:
hooks:
- go mod download
builds:
- main: main.go
binary: boring-registry
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s
- -w
- -X github.com/boring-registry/boring-registry/version.Version={{.Version}}
- -X github.com/boring-registry/boring-registry/version.Commit={{.Commit}}
- -X github.com/boring-registry/boring-registry/version.Date={{.Date}}
- -X github.com/boring-registry/boring-registry/version.BuiltBy=goreleaser
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"