-
Notifications
You must be signed in to change notification settings - Fork 340
/
.goreleaser.yml
162 lines (150 loc) · 4.28 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
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
152
153
154
155
156
157
158
159
160
161
162
version: 2
before:
hooks:
- ./scripts/completions.sh
- ./scripts/manpages.sh
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- freebsd
- linux
- solaris
- windows
goarch:
- 386
- amd64
- arm
- arm64
- mips64
- mips64le
- ppc64
- ppc64le
- riscv64
- s390x
goarm:
- 5
- 6
- 7
gomips:
- softfloat
ignore:
- goos: windows
goarch: arm
flags:
- -trimpath
ldflags:
- "-s -w -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.BuildDate={{.Date}} -X github.com/prometheus/common/version.Branch={{.Branch}} -X github.com/prometheus/common/version.BuildUser=goreleaser"
changelog:
disable: true
archives:
- format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- completions/*
- manpages/*
sboms:
- artifacts: archive
documents:
- "${artifact}.spdx.json"
brews:
- repository:
owner: nginxinc
name: homebrew-tap
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
directory: Formula
homepage: https://github.com/nginxinc/nginx-prometheus-exporter
description: NGINX Prometheus Exporter for NGINX and NGINX Plus
license: Apache-2.0
commit_author:
name: nginx-bot
email: [email protected]
extra_install: |-
bash_completion.install "completions/nginx-prometheus-exporter.bash" => "nginx-prometheus-exporter"
zsh_completion.install "completions/nginx-prometheus-exporter.zsh" => "_nginx-prometheus-exporter"
man1.install "manpages/nginx-prometheus-exporter.1.gz"
signs:
- cmd: cosign
artifacts: checksum
output: true
certificate: "${artifact}.pem"
args:
- sign-blob
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "${artifact}"
- "--yes"
announce:
slack:
enabled: true
channel: "#announcements"
message_template: "NGINX Prometheus Exporter {{ .Tag }} is out! Check it out: {{ .ReleaseURL }}"
milestones:
- close: true
snapcrafts:
- name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
title: NGINX Prometheus Exporter
summary: NGINX Prometheus Exporter for NGINX and NGINX Plus
description: |
NGINX Prometheus exporter fetches the metrics from NGINX or NGINX Plus,
converts the metrics into appropriate Prometheus metrics types and finally exposes
them via an HTTP server to be collected by Prometheus.
grade: stable
confinement: strict
publish: true
license: "Apache-2.0"
apps:
nginx-prometheus-exporter:
command: nginx-prometheus-exporter
plugs: ["network", "network-bind"]
completer: completions/nginx-prometheus-exporter.bash
disable: "{{ if .IsSnapshot }}true{{ end }}"
nix:
- name: nginx-prometheus-exporter
repository:
owner: nginxinc
name: nur
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
homepage: https://github.com/nginxinc/nginx-prometheus-exporter
description: NGINX Prometheus Exporter for NGINX and NGINX Plus
license: asl20
commit_author:
name: nginx-bot
email: [email protected]
extra_install: |-
installManPage ./manpages/nginx-prometheus-exporter.1.gz
installShellCompletion ./completions/*
winget:
- name: nginx-prometheus-exporter
publisher: nginxinc
license: Apache-2.0
homepage: https://github.com/nginxinc/nginx-prometheus-exporter
short_description: NGINX Prometheus Exporter for NGINX and NGINX Plus
repository:
owner: nginxinc
name: winget-pkgs
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
branch: "nginx-prometheus-exporter-{{.Version}}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
scoops:
- repository:
owner: nginxinc
name: scoop-bucket
token: "{{ .Env.NGINX_GITHUB_TOKEN }}"
directory: bucket
homepage: https://github.com/nginxinc/nginx-prometheus-exporter
description: NGINX Prometheus Exporter for NGINX and NGINX Plus
license: Apache-2.0
commit_author:
name: nginx-bot
email: [email protected]