forked from martin-helmich/prometheus-nginxlog-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
133 lines (132 loc) · 6.59 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
project_name: prometheus-nginxlog-exporter
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- >
-s
-w
-X "github.com/prometheus/common/version.Version={{.Version}}"
-X "github.com/prometheus/common/version.Branch={{.Env.GITHUB_REF_NAME}}"
-X "github.com/prometheus/common/version.Revision={{.Env.GITHUB_SHA}}"
-X "github.com/prometheus/common/version.BuildUser={{ .Env.BUILD_USER }}"
-X "github.com/prometheus/common/version.BuildDate={{.Env.BUILD_DATE}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- dockerfile: .goreleaser.Dockerfile
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:latest-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:stable-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}.{{ .Minor }}-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:{{ .Tag }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:latest-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:stable-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}.{{ .Minor }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:{{ .Tag }}-amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=ARCH=amd64/"
ids:
- prometheus-nginxlog-exporter
goos: linux
goarch: amd64
- dockerfile: .goreleaser.Dockerfile
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:latest-arm64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:stable-arm64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}-arm64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}.{{ .Minor }}-arm64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:{{ .Tag }}-arm64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:latest-arm64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:stable-arm64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}-arm64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}.{{ .Minor }}-arm64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:{{ .Tag }}-arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--build-arg=ARCH=arm64v8/"
ids:
- prometheus-nginxlog-exporter
goos: linux
goarch: arm64
docker_manifests:
- name_template: quay.io/martinhelmich/prometheus-nginxlog-exporter:latest
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:latest-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:latest-arm64
- name_template: quay.io/martinhelmich/prometheus-nginxlog-exporter:stable
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:stable-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:stable-arm64
- name_template: quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}-arm64
- name_template: quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}.{{ .Minor }}
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}.{{ .Minor }}-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:v{{ .Major }}.{{ .Minor }}-arm64
- name_template: quay.io/martinhelmich/prometheus-nginxlog-exporter:{{ .Tag }}
image_templates:
- quay.io/martinhelmich/prometheus-nginxlog-exporter:{{ .Tag }}-amd64
- quay.io/martinhelmich/prometheus-nginxlog-exporter:{{ .Tag }}-arm64
- name_template: docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:latest
image_templates:
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:latest-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:latest-arm64
- name_template: docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:stable
image_templates:
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:stable-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:stable-arm64
- name_template: docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}
image_templates:
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}-arm64
- name_template: docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}.{{ .Minor }}
image_templates:
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}.{{ .Minor }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:v{{ .Major }}.{{ .Minor }}-arm64
- name_template: docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:{{ .Tag }}
image_templates:
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:{{ .Tag }}-amd64
- docker.pkg.github.com/martin-helmich/prometheus-nginxlog-exporter/exporter:{{ .Tag }}-arm64
nfpms:
- vendor: Martin Helmich
homepage: https://github.com/martin-helmich/prometheus-nginxlog-exporter
description: Export Prometheus metrics from NGINX (or compatible) log files
license: Apache 2.0
maintainer: Martin Helmich <[email protected]>
formats:
- deb
- rpm
dependencies:
- systemd
bindir: /usr/sbin
contents:
- src: res/package/prometheus-nginxlog-exporter.service
dst: /lib/systemd/system/prometheus-nginxlog-exporter.service
- src: res/package/default-config.hcl
dst: /etc/prometheus-nginxlog-exporter.hcl
type: config|noreplace
scripts:
postinstall: res/package/scripts/postinstall.sh