This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
89 lines (89 loc) · 2.37 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
project_name: discovery
release:
github:
owner: postfinance
name: discovery
builds:
- id: discovery
goos:
- linux
goarch:
- amd64
main: ./cmd/discovery/
binary: discovery
env:
- CGO_ENABLED=0
- id: discoveryd
goos:
- linux
goarch:
- amd64
main: ./cmd/discoveryd/
binary: discoveryd
env:
- CGO_ENABLED=0
- id: discovery-darwin
goos:
- darwin
goarch:
- amd64
- arm64
main: ./cmd/discovery/
binary: discovery
env:
- CGO_ENABLED=0
nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
package_name: discovery
contents:
- src: packaging/rpm/*.service
dst: /usr/lib/systemd/system/
- src: packaging/rpm/exporter
dst: /etc/sysconfig/exporter
type: config
file_info:
mode: 0640
- src: packaging/rpm/discovery
dst: /etc/sysconfig/discovery
type: config
file_info:
mode: 0640
scripts:
preinstall: packaging/rpm/pre.sh
postinstall: packaging/rpm/post.sh
formats:
- deb
- rpm
vendor: Die Schweizerische Post - PostFinance
homepage: https://github.com//postfinance/discovery
maintainer: Rene Zbinden <[email protected]>
description: Service discovery for prometheus with etcd backend.
license: Die Schweizerische Post - PostFinance
bindir: /usr/bin
archives:
- id: linux
builds:
- discovery
- discoveryd
- id: darwin
builds:
- discovery-darwin
allow_different_binary_count: true
checksum:
name_template: checksums.txt
dockers:
- ids:
- discoveryd
goos: linux
goarch: amd64
dockerfile: packaging/docker/Dockerfile
image_templates:
- 'postfinance/discovery:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- 'postfinance/discovery:{{ .Major }}.{{ .Minor }}'
- 'postfinance/discovery:{{ .Major }}'
- 'postfinance/discovery:latest'
build_flag_templates:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.vendor=PostFinance AG