forked from newrelic/nri-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
45 lines (45 loc) · 1.06 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
---
builds:
- id: nri-prometheus
main: ./cmd/nri-prometheus/
binary: nri-prometheus
ldflags:
- -s -w -X github.com/newrelic/nri-prometheus/internal/integration.Version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- freebsd
- linux
- darwin
hooks:
pre: env MAJOR_MINOR_VERSION={{ .Major }}.{{ .Minor }} env PRE_RELEASE_VERSION={{ .Prerelease }} env FULL_VERSION={{ .Version }} go generate ./...
ignore:
- goarch: 386
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'
dockers:
- dockerfile: Dockerfile.release
binaries:
- nri-prometheus
image_templates:
- 'newrelic/nri-prometheus:{{ .Major }}.{{ .Minor }}'
skip_push: auto
- dockerfile: Dockerfile.release
binaries:
- nri-prometheus
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'