-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
122 lines (115 loc) · 3.05 KB
/
.goreleaser.yaml
File metadata and controls
122 lines (115 loc) · 3.05 KB
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
118
119
120
121
122
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
builds:
- id: exec
main: ./cmd/errors
binary: errors
env:
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags "-static" -X "github.com/webhippie/errors/pkg/version.String={{.Version}}" -X "github.com/webhippie/errors/pkg/version.Revision={{.Commit}}" -X "github.com/webhippie/errors/pkg/version.Date={{.Date}}"
tags:
- netgo
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm64
- arm
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm
archives:
- id: exec
ids:
- exec
name_template: "errors-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- CHANGELOG.md
- src: cmd/errors/README.md
dst: README.md
nfpms:
- id: exec
ids:
- exec
package_name: errors
file_name_template: "errors-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
vendor: Webhippie
homepage: https://webhippie.github.io/errors/
maintainer: Thomas Boerger <thomas@webhippie.de>
description: |-
Default backend for Kubernetes Ingress
license: Apache 2.0
formats:
- deb
- rpm
contents:
- src: packaging/systemd/server.service
dst: /usr/lib/systemd/system/errors.service
- src: packaging/systemd/server.env
dst: /etc/sysconfig/errors
packager: rpm
- src: packaging/systemd/server.env
dst: /etc/default/errors
packager: deb
- src: packaging/config/server.yaml
dst: /etc/errors/server.yaml
type: config|noreplace
- src: config/errors.yaml
dst: /etc/errors/errors.yaml
type: config|noreplace
- dst: /usr/share/errors/templates
type: dir
- src: pkg/templates/dist/html.tmpl
dst: /usr/share/errors/templates/html.tmpl
- src: pkg/templates/dist/json.tmpl
dst: /usr/share/errors/templates/json.tmpl
scripts:
preinstall: packaging/scripts/preinstall.sh
postinstall: packaging/scripts/postinstall.sh
preremove: packaging/scripts/preremove.sh
postremove: packaging/scripts/postremove.sh
signs:
- id: archives
signature: "${artifact}.asc"
cmd: gpg2
artifacts: archive
args:
- --batch
- --armor
- --local-user
- 552D1DF54CBEA471C570C816EA4B5799921648E8
- --output
- ${signature}
- --detach-sign
- ${artifact}
- id: packages
signature: "${artifact}.asc"
cmd: gpg2
artifacts: package
args:
- --batch
- --armor
- --local-user
- 552D1DF54CBEA471C570C816EA4B5799921648E8
- --output
- ${signature}
- --detach-sign
- ${artifact}
snapshot:
version_template: testing
changelog:
disable: true
checksum:
disable: false
split: true