-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
76 lines (76 loc) · 1.74 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
project_name: go-binaries
release:
github:
owner: datreeio
name: go-binaries
name_template: "{{.Tag}}"
milestones:
- repo:
owner: datreeio
name: go-binaries
name_template: "{{ .Tag }}"
scoop:
name: go-binaries
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
builds:
- id: go-binaries
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- "386"
goarm:
- "6"
targets:
- linux_amd64
- linux_arm64
- linux_386
- darwin_amd64
dir: .
main: .
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
-X main.builtBy=goreleaser
binary: go-binaries
lang: go
gobinary: go
archives:
- id: default
builds:
- go-binaries
name_template:
"{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format: tar.gz
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
allow_different_binary_count: false
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
source:
name_template: "{{ .ProjectName }}-{{ .Version }}"
format: tar.gz
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com