-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
115 lines (95 loc) · 2.72 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
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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: radeon_exporter
main: ./
binary: radeon_exporter
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.build={{.Version}}
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
goos:
- linux
goarch:
- amd64
- arm64
release:
github:
owner: kmulvey
name: radeon_exporter
# Whether to remove existing draft releases with the same name before creating
replace_existing_draft: true
# Whether to remove an artifact that already exists.
replace_existing_artifacts: true
archives:
- id: dist
builds:
- radeon_exporter
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- radeon_exporter.service
- LICENSE
- grafana-config.json
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
nfpms:
# note that this is an array of nfpm configs
- # ID of the nfpm config, must be unique.
id: radeon_exporter
package_name: radeon_exporter
builds:
- radeon_exporter
# Your app's vendor.
vendor: Kevin Mulvey
# Your app's homepage.
homepage: https://github.com/kmulvey/radeon_exporter
# Your app's maintainer (probably you).
maintainer: Drummer <[email protected]>
# Your app's description.
description: |-
Prometheus exporter for Radeon (AMD) graphics cards.
# Your app's license.
license: MIT
# Formats to be generated.
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
provides:
- radeon_exporter
# Path that the binaries should be installed.
# Default: '/usr/bin'
bindir: /usr/bin
contents:
# Basic file that applies to all packagers
- src: radeon_exporter.service
dst: /etc/systemd/system/radeon_exporter.service
# Custom configuration applied only to the RPM packager.
rpm:
group: root
compression: lzma
# The package is signed if a key_file is set
#signature:
# PGP secret key file path (can also be ASCII-armored).
# The passphrase is taken from the environment variable
# `$NFPM_ID_RPM_PASSPHRASE` with a fallback to `$NFPM_ID_PASSPHRASE`,
# where ID is the id of the current nfpm config.
# The id will be transformed to uppercase.
# E.g. If your nfpm id is 'default' then the rpm-specific passphrase
# should be set as `$NFPM_DEFAULT_RPM_PASSPHRASE`
#
# Templates: allowed
#key_file: "/home/kmulvey/keys/sec.gpg"