Skip to content

Commit 0e426a9

Browse files
alvarocabanasRoberto Santalla
andauthored
Arm support (#113)
Add ARM and ARM64 releases Co-authored-by: Roberto Santalla <[email protected]>
1 parent 0e05d80 commit 0e426a9

File tree

2 files changed

+27
-37
lines changed

2 files changed

+27
-37
lines changed

build/.goreleaser.yml

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -30,55 +30,45 @@ builds:
3030
pre: build/windows/set_exe_properties.sh {{ .Env.TAG }} "redis"
3131

3232
nfpms:
33-
- id: nri-deb
34-
builds:
35-
- nri-nix
33+
- id: linux
3634
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
3735
vendor: "New Relic, Inc."
3836
homepage: "https://www.newrelic.com/infrastructure"
3937
maintainer: "New Relic Infrastructure Team <[email protected]>"
4038
description: "New Relic Infrastructure redis Integration extend the core New Relic\nInfrastructure agent's capabilities to allow you to collect metric and\nlive state data from redis components."
4139
license: "https://newrelic.com/terms (also see LICENSE installed with this package)"
42-
# Formats to be generated.
43-
formats:
44-
- deb
45-
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin"
46-
files:
47-
"CHANGELOG.md": "/usr/share/doc/nri-redis/CHANGELOG.md"
48-
"README.md": "/usr/share/doc/nri-redis/README.md"
49-
"LICENSE": "/usr/share/doc/nri-redis/LICENSE"
50-
config_files:
51-
"redis-definition.yml": "/var/db/newrelic-infra/newrelic-integrations/redis-definition.yml"
52-
"redis-config.yml.sample": "/etc/newrelic-infra/integrations.d/redis-config.yml.sample"
53-
dependencies:
54-
- "newrelic-infra"
5540

56-
- id: nri-rpm
5741
builds:
5842
- nri-nix
59-
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
60-
vendor: "New Relic, Inc."
61-
homepage: "https://www.newrelic.com/infrastructure"
62-
maintainer: "New Relic Infrastructure Team <[email protected]>"
63-
description: "New Relic Infrastructure redis Integration extend the core New Relic\nInfrastructure agent's capabilities to allow you to collect metric and\nlive state data from redis components."
64-
license: "https://newrelic.com/terms (also see LICENSE installed with this package)"
65-
# Formats to be generated.
66-
formats:
67-
- rpm
68-
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin"
69-
files:
70-
"CHANGELOG.md": "/usr/share/doc/nri-redis/CHANGELOG.md"
71-
"README.md": "/usr/share/doc/nri-redis/README.md"
72-
"LICENSE": "/usr/share/doc/nri-redis/LICENSE"
73-
config_files:
74-
"redis-definition.yml": "/var/db/newrelic-infra/newrelic-integrations/redis-definition.yml"
75-
"redis-config.yml.sample": "/etc/newrelic-infra/integrations.d/redis-config.yml.sample"
43+
7644
dependencies:
7745
- "newrelic-infra"
46+
47+
bindir: "/var/db/newrelic-infra/newrelic-integrations/bin"
48+
49+
contents:
50+
- src: "redis-config.yml.sample"
51+
dst: "/etc/newrelic-infra/integrations.d/redis-config.yml.sample"
52+
- src: "CHANGELOG.md"
53+
dst: "/usr/share/doc/nri-redis/CHANGELOG.md"
54+
- src: "README.md"
55+
dst: "/usr/share/doc/nri-redis/README.md"
56+
- src: "LICENSE"
57+
dst: "/usr/share/doc/nri-redis/LICENSE"
58+
- src: "redis-definition.yml"
59+
dst: "/var/db/newrelic-infra/newrelic-integrations/redis-definition.yml"
60+
type: config
61+
7862
overrides:
7963
rpm:
64+
file_name_template: "{{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}"
8065
replacements:
81-
amd64: 1.x86_64
66+
amd64: x86_64
67+
68+
# Formats to be generated.
69+
formats:
70+
- deb
71+
- rpm
8272

8373
archives:
8474
- id: nri-nix
@@ -101,4 +91,4 @@ archives:
10191

10292
# we use custom publisher for fixing archives and signing them
10393
release:
104-
disable: true
94+
disable: true

build/release.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BUILD_DIR := ./bin/
2-
GORELEASER_VERSION := v0.154.0
2+
GORELEASER_VERSION := v0.169.0
33
GORELEASER_BIN ?= bin/goreleaser
44

55
bin:

0 commit comments

Comments
 (0)