Skip to content

Commit

Permalink
ci: target file for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Sep 2, 2024
1 parent 3f5145a commit 07d09d0
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
77 changes: 77 additions & 0 deletions build/goreleaser/linux/sles_156_arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SLES 15.6 arm

- id: sle-15.6-infrastructure-agent-arm
builds:
- linux-agent-arm
- linux-ctl-arm
- linux-service-arm
package_name: newrelic-infra
file_name_template: "newrelic-infra-{{ .Env.TAG }}-1.sles15.6.{{ .Arch }}"
vendor: 'New Relic, Inc.'
homepage: 'https://docs.newrelic.com/docs/release-notes/infrastructure-release-notes/infrastructure-agent-release-notes'
maintainer: '[email protected]'
description: 'New Relic Infrastructure provides flexible, dynamic server monitoring. With real-time data collection and a UI that scales from a handful of hosts to thousands, Infrastructure is designed for modern Operations teams with fast-changing systems.'
license: 'Copyright (c) 2008-2021 New Relic, Inc. All rights reserved.'
formats:
- rpm
bindir: /usr/bin
contents:
# - src: 'assets/examples/logging/linux/file.yml.example'
# dst: '/etc/newrelic-infra/logging.d/file.yml.example'
# - src: 'assets/examples/logging/linux/fluentbit.yml.example'
# dst: '/etc/newrelic-infra/logging.d/fluentbit.yml.example'
# - src: 'assets/examples/logging/linux/syslog.yml.example'
# dst: '/etc/newrelic-infra/logging.d/syslog.yml.example'
# - src: 'assets/examples/logging/linux/systemd.yml.example'
# dst: '/etc/newrelic-infra/logging.d/systemd.yml.example'
# - src: 'assets/examples/logging/linux/tcp.yml.example'
# dst: '/etc/newrelic-infra/logging.d/tcp.yml.example'

- src: 'build/package/systemd/newrelic-infra.service'
dst: '/etc/systemd/system/newrelic-infra.service'
- src: 'LICENSE'
dst: '/var/db/newrelic-infra/LICENSE.txt'
- src: 'target/nridocker/{{ .Arch }}/etc/newrelic-infra/integrations.d/docker-config.yml'
dst: '/etc/newrelic-infra/integrations.d/docker-config.yml'
type: config

- src: 'target/nridocker/{{ .Arch }}/var/db/newrelic-infra/newrelic-integrations/bin/nri-docker'
dst: '/opt/newrelic-infra/newrelic-integrations/bin/nri-docker'
- src: 'target/nriflex/{{ .Arch }}/nri-flex'
dst: '/opt/newrelic-infra/newrelic-integrations/bin/nri-flex'
- src: 'target/nriprometheus/{{ .Arch }}/var/db/newrelic-infra/newrelic-integrations/bin/nri-prometheus'
dst: '/opt/newrelic-infra/newrelic-integrations/bin/nri-prometheus'
# - src: 'target/fluent-bit-plugin/{{ .Arch }}/out_newrelic.so'
# dst: '/var/db/newrelic-infra/newrelic-integrations/logging/out_newrelic.so'
# - src: 'assets/examples/logging/parsers.conf'
# dst: '/var/db/newrelic-infra/newrelic-integrations/logging/parsers.conf'
empty_folders:
- /opt/newrelic-infra/custom-integrations
- /opt/newrelic-infra/newrelic-integrations
- /var/db/newrelic-infra/custom-integrations
- /var/db/newrelic-infra/integrations.d
- /var/log/newrelic-infra
- /var/run/newrelic-infra
epoch: 0
release: 1.sles15.6

# Scripts to execute during the installation of the package.
scripts:
preinstall: "build/package/before-install.sh"
preremove: "build/package/rpm/prerm-systemd.sh"

# Packages to replace according to old packaging scripts.
replaces:
- opspro-agent
- opspro-agent-systemd
# Section.
section: default
# Priority.
priority: extra
rpm:
scripts:
posttrans: "build/package/rpm/postinst-systemd.sh"
summary: "New Relic Infrastructure Agent"
group: default

# end SLES 15.6 arm
2 changes: 2 additions & 0 deletions build/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ generate-goreleaser-amd64:
$(CURDIR)/build/goreleaser/linux/sles_153_arm.yml\
$(CURDIR)/build/goreleaser/linux/sles_154_arm.yml\
$(CURDIR)/build/goreleaser/linux/sles_155_arm.yml\
$(CURDIR)/build/goreleaser/linux/sles_156_arm.yml\
> $(GORELEASER_CONFIG_LINUX)

.PHONY : generate-goreleaser-arm64
Expand Down Expand Up @@ -309,6 +310,7 @@ generate-goreleaser-multiarch:
$(CURDIR)/build/goreleaser/linux/sles_155_arm.yml\
$(CURDIR)/build/goreleaser/linux/sles_155_arm64.yml\
$(CURDIR)/build/goreleaser/linux/sles_156_amd64.yml\
$(CURDIR)/build/goreleaser/linux/sles_156_arm.yml\
$(CURDIR)/build/goreleaser/linux/sles_156_arm64.yml\
> $(GORELEASER_CONFIG_LINUX)

Expand Down
1 change: 1 addition & 0 deletions build/upload-schema-linux-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
- 15.3
- 15.4
- 15.5
- 15.6

- src: "newrelic-infra-{version}-1.sles{os_version}.{arch}.rpm.sum"
arch:
Expand Down

0 comments on commit 07d09d0

Please sign in to comment.