-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
151 lines (144 loc) · 3.46 KB
/
.goreleaser.yaml
File metadata and controls
151 lines (144 loc) · 3.46 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
builds:
- id: server
main: ./cmd/github_exporter
binary: github_exporter
env:
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags "-static" -X "github.com/promhippie/github_exporter/pkg/version.String={{.Version}}" -X "github.com/promhippie/github_exporter/pkg/version.Revision={{.Commit}}" -X "github.com/promhippie/github_exporter/pkg/version.Date={{.Date}}"
tags:
- netgo
- sqlite
- chai
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm64
- arm
- mips64
- mips
- mips64le
- mipsle
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm
overrides:
- goos: linux
goarch: "386"
tags:
- netgo
- sqlite
- goos: linux
goarch: arm
tags:
- netgo
- sqlite
- goos: linux
goarch: mips64
tags:
- netgo
- chai
- goos: linux
goarch: mips
tags:
- netgo
- goos: linux
goarch: mips64le
tags:
- netgo
- chai
- goos: linux
goarch: mipsle
tags:
- netgo
- goos: windows
goarch: "386"
tags:
- netgo
archives:
- id: server
ids:
- server
name_template: "github-exporter-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- CHANGELOG.md
- src: cmd/github_exporter/README.md
dst: README.md
nfpms:
- id: server
ids:
- server
package_name: github-exporter
file_name_template: "github-exporter-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}"
vendor: Webhippie
homepage: https://promhippie.github.io/github_exporter/
maintainer: Thomas Boerger <thomas@webhippie.de>
description: |-
Prometheus exporter for GitHub
license: Apache 2.0
formats:
- deb
- rpm
contents:
- src: packaging/systemd/server.service
dst: /usr/lib/systemd/system/github-exporter.service
- src: packaging/systemd/server.env
dst: /etc/sysconfig/github-exporter
packager: rpm
- src: packaging/systemd/server.env
dst: /etc/default/github-exporter
packager: deb
- dst: /var/lib/github-exporter
type: dir
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
- B8BB213D9E131E46D2EBE22E44E93172C6FDE7E6
- --output
- ${signature}
- --detach-sign
- ${artifact}
- id: packages
signature: "${artifact}.asc"
cmd: gpg2
artifacts: package
args:
- --batch
- --armor
- --local-user
- B8BB213D9E131E46D2EBE22E44E93172C6FDE7E6
- --output
- ${signature}
- --detach-sign
- ${artifact}
snapshot:
version_template: testing
changelog:
disable: true
checksum:
disable: false
split: true