-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.goreleaser.yml
118 lines (117 loc) · 2.27 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 2
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- id: win
env:
- CGO_ENABLED=0
goos:
- windows
- id: lnx
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
- id: osx
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
- id: fbsd
env:
- CGO_ENABLED=0
goos:
- freebsd
goarch:
- 386
- amd64
archives:
-
# name_template: "{{.ProjectName}}-{{.Version}}-{{.Os}}{{.Arch}}"
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- title .Os }}
{{- if eq .Arch "amd64" }}64
{{- else if eq .Arch "386" }}32
{{- else }}{{ .Arch }}{{ end }}
builds:
- win
- osx
- fbsd
files:
- gossiped.example.yml
- gossiped.tpl
- city.yml
- colors/*.yml
format_overrides:
- goos: windows
format: zip
# replacements:
# darwin: osx
# linux: lnx
# windows: win
# freebsd: fbsd
# 386: 32
# amd64: 64
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{.Version}}-snapshot"
changelog:
disable: true
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
id: gossiped
package_name: gossiped
homepage: https://github.com/askovpen/gossiped
maintainer: askovpen <spam-from-github@skovpen.org>
license: MIT
file_name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- title .Os }}
{{- if eq .Arch "amd64" }}64
{{- else if eq .Arch "386" }}32
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
# file_name_template: "{{.ProjectName}}-{{.Version}}-{{.Os}}{{.Arch}}{{ if .Arm }}v{{ .Arm }}{{ end }}"
# replacements:
# darwin: osx
# linux: lnx
# windows: win
# 386: 32
# amd64: 64
formats:
- deb
- rpm
bindir: /usr/bin
vendor: askovpen
contents:
- src: gossiped.example.yml
dst: /etc/ftn/gossiped.example.yml
type: config
- src: gossiped.tpl
dst: /etc/ftn/gossiped.tpl
type: config