1+ ---
2+ version : 2
3+ project_name : nri-f5
14builds :
25 - id : nri-nix
36 main : ./src
@@ -18,6 +21,26 @@ builds:
1821 - goos : darwin
1922 goarch : 386
2023
24+ - id : nri-f5-nix-fips
25+ main : ./src
26+ binary : nri-f5
27+ ldflags :
28+ - -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}}
29+ env :
30+ - CGO_ENABLED=1
31+ - GOEXPERIMENT=boringcrypto
32+ - >-
33+ {{- if eq .Arch "arm64" -}}
34+ CC=aarch64-linux-gnu-gcc
35+ {{- end }}
36+ goos :
37+ - linux
38+ goarch :
39+ - amd64
40+ - arm64
41+ tags :
42+ - fips
43+
2144 - id : nri-win
2245 main : ./src
2346 binary : nri-f5
@@ -35,6 +58,7 @@ builds:
3558
3659nfpms :
3760 - id : linux
61+ package_name : nri-f5
3862 file_name_template : " {{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
3963 vendor : " New Relic, Inc."
4064 homepage : " https://www.newrelic.com/infrastructure"
@@ -64,15 +88,62 @@ nfpms:
6488
6589 overrides :
6690 rpm :
67- file_name_template : " {{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}"
68- replacements :
69- amd64 : x86_64
91+ file_name_template : >-
92+ {{- .ProjectName }}-
93+ {{- .Version }}-1.
94+ {{- if eq .Arch "amd64" -}}x86_64
95+ {{- else -}}
96+ {{ .Arch }}
97+ {{- end }}
7098
7199 # Formats to be generated.
72100 formats :
73101 - deb
74102 - rpm
75103
104+ - id : linux-fips
105+ package_name : nri-f5-fips
106+ file_name_template : " {{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}"
107+ vendor : " New Relic, Inc."
108+ homepage : " https://www.newrelic.com/infrastructure"
109+ maintainer : " New Relic Infrastructure Team <infrastructure-eng@newrelic.com>"
110+ description : " New Relic Infrastructure f5 Integration extend the core New Relic\n Infrastructure agent's capabilities to allow you to collect metric and\n live state data from f5 components."
111+ license : " https://newrelic.com/terms (also see LICENSE installed with this package)"
112+
113+ builds :
114+ - nri-f5-nix-fips
115+
116+ dependencies :
117+ - newrelic-infra-fips (>= 1.60.0)
118+
119+ bindir : " /var/db/newrelic-infra/newrelic-integrations/bin"
120+
121+ contents :
122+ - src : " f5-config.yml.sample"
123+ dst : " /etc/newrelic-infra/integrations.d/f5-config.yml.sample"
124+ - src : " CHANGELOG.md"
125+ dst : " /usr/share/doc/nri-f5/CHANGELOG.md"
126+ - src : " README.md"
127+ dst : " /usr/share/doc/nri-f5/README.md"
128+ - src : " LICENSE"
129+ dst : " /usr/share/doc/nri-f5/LICENSE"
130+ - src : " legacy/f5-definition.yml"
131+ dst : " /var/db/newrelic-infra/newrelic-integrations/f5-definition.yml"
132+ type : config
133+
134+ overrides :
135+ rpm :
136+ file_name_template : >-
137+ {{- .ProjectName }}-fips-
138+ {{- .Version }}-1.
139+ {{- if eq .Arch "amd64" -}}x86_64
140+ {{- else -}}
141+ {{ .Arch }}
142+ {{- end }}
143+ formats :
144+ - deb
145+ - rpm
146+
76147archives :
77148 - id : nri-nix
78149 builds :
@@ -85,6 +156,17 @@ archives:
85156 strip_parent : true
86157 format : tar.gz
87158
159+ - id : nri-f5-nix-fips
160+ builds :
161+ - nri-f5-nix-fips
162+ name_template : " {{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty"
163+ files :
164+ - f5-config.yml.sample
165+ - src : ' legacy/f5-definition.yml'
166+ dst : .
167+ strip_parent : true
168+ format : tar.gz
169+
88170 - id : nri-win
89171 builds :
90172 - nri-win
0 commit comments