-
Notifications
You must be signed in to change notification settings - Fork 47
/
.goreleaser.yml
116 lines (108 loc) · 3.31 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
builds:
- id: nri-prometheus-nix
main: ./cmd/nri-prometheus/
binary: nri-prometheus
ldflags:
- -s -w -X github.com/newrelic/nri-prometheus/internal/integration.Version={{.Version}} #-X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- id: nri-prometheus-win
main: ./cmd/nri-prometheus/
binary: nri-prometheus
ldflags:
- -s -w -X github.com/newrelic/nri-prometheus/internal/integration.Version={{.Version}} #-X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- 386
- amd64
hooks:
pre: build/windows/set_exe_properties.sh {{ .Env.TAG }} "prometheus"
archives:
- id: nri-prometheus-nix
builds:
- nri-prometheus-nix
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty"
format: tar.gz
- id: nri-prometheus-win
builds:
- nri-prometheus-win
name_template: "{{ .ProjectName }}-{{ .Arch }}.{{ .Version }}_dirty"
format: zip
# we use custom publisher for fixing archives and signing them
release:
disable: true
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile.release
ids:
- nri-prometheus-nix
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-amd64'
use_buildx: true
build_flag_templates:
- "--platform=linux/amd64"
skip_push: false
- goos: linux
goarch: arm64
dockerfile: Dockerfile.release
ids:
- nri-prometheus-nix
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm64'
use_buildx: true
build_flag_templates:
- "--platform=linux/arm64"
skip_push: false
- goos: linux
goarch: arm
goarm: 6
dockerfile: Dockerfile.release
ids:
- nri-prometheus-nix
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm'
use_buildx: true
build_flag_templates:
- "--platform=linux/arm"
skip_push: false
docker_manifests:
- name_template: newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-amd64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm'
- name_template: newrelic/nri-prometheus:{{ .Major }}.{{ .Minor }}{{ .Env.TAG_SUFFIX }}
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-amd64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm'
- name_template: newrelic/nri-prometheus:latest{{ .Env.TAG_SUFFIX }}
image_templates:
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-amd64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm64'
- 'newrelic/nri-prometheus:{{ .Version }}{{ .Env.TAG_SUFFIX }}-arm'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'