Skip to content

Commit c56f66b

Browse files
committed
ci: add goreleaser file
1 parent 4c14bd5 commit c56f66b

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

.goreleaser.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
project_name: go-binaries
2+
release:
3+
github:
4+
owner: datreeio
5+
name: go-binaries
6+
name_template: "{{.Tag}}"
7+
milestones:
8+
- repo:
9+
owner: datreeio
10+
name: go-binaries
11+
name_template: "{{ .Tag }}"
12+
scoop:
13+
name: go-binaries
14+
commit_author:
15+
name: goreleaserbot
16+
email: goreleaser@carlosbecker.com
17+
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
18+
builds:
19+
- id: go-binaries
20+
goos:
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- arm64
26+
- "386"
27+
goarm:
28+
- "6"
29+
targets:
30+
- linux_amd64
31+
- linux_arm64
32+
- linux_386
33+
- darwin_amd64
34+
dir: .
35+
main: .
36+
ldflags:
37+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
38+
-X main.builtBy=goreleaser
39+
binary: go-binaries
40+
lang: go
41+
gobinary: go
42+
archives:
43+
- id: default
44+
builds:
45+
- go-binaries
46+
name_template:
47+
"{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
48+
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
49+
format: tar.gz
50+
files:
51+
- licence*
52+
- LICENCE*
53+
- license*
54+
- LICENSE*
55+
- readme*
56+
- README*
57+
- changelog*
58+
- CHANGELOG*
59+
allow_different_binary_count: false
60+
snapshot:
61+
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"
62+
checksum:
63+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
64+
algorithm: sha256
65+
dist: dist
66+
env_files:
67+
github_token: ~/.config/goreleaser/github_token
68+
gitlab_token: ~/.config/goreleaser/gitlab_token
69+
gitea_token: ~/.config/goreleaser/gitea_token
70+
source:
71+
name_template: "{{ .ProjectName }}-{{ .Version }}"
72+
format: tar.gz
73+
github_urls:
74+
download: https://github.com
75+
gitlab_urls:
76+
download: https://gitlab.com

0 commit comments

Comments
 (0)