-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
76 lines (70 loc) · 1.84 KB
/
.goreleaser.yaml
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
# see docs/goreleaser.md for instructions and details on this file
#
before:
hooks:
- go mod tidy
- make
builds:
- env:
- CGO_ENABLED=0
ldflags:
- '-s -w'
- '-X github.com/powersj/spawn/internal.Version={{ .Env.version }}'
- '-X github.com/powersj/spawn/internal.Branch={{ .Env.branch }}'
- '-X github.com/powersj/spawn/internal.Commit={{ .Env.commit }}'
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goamd64:
- v3
ignore:
- goos: windows
goarch: arm64
- goos: darwin
goarch: amd64
changelog:
sort: asc
nfpms:
- package_name: spawn
homepage: https://github.com/powersj/spawn
maintainer: Joshua Powers <[email protected]>
description: TOML config driven agent to generate data
formats:
- deb
- rpm
# Name template result:
# spawn-2.0.0.aarch64.rpm
# spawn-2.0.0.x86_64.rpm
# spawn_2.0.0_arm64.deb
# spawn_2.0.0_amd64.deb
file_name_template: >-
{{- if eq .ConventionalExtension ".deb" }}
{{- .PackageName }}_{{ .Env.version }}_{{ .Arch }}
{{- else if eq .ConventionalExtension ".rpm" }}
{{- .PackageName }}-{{ .Env.version }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
{{- end }}
{{- .ConventionalExtension }}
archives:
- format: tar.gz
files:
- README.md
- LICENSE
name_template: >-
{{ .ProjectName }}-{{ .Env.version }}-{{- tolower .Os }}-
{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
snapshot:
name_template: "{{ .Env.version }}-snapshot"