From 07d09d01152627eb3ee5853ceb9fe985cd53ffdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Mon, 2 Sep 2024 15:21:23 +0100 Subject: [PATCH] ci: target file for arm --- build/goreleaser/linux/sles_156_arm.yml | 77 +++++++++++++++++++++++++ build/release.mk | 2 + build/upload-schema-linux-rpm.yml | 1 + 3 files changed, 80 insertions(+) create mode 100644 build/goreleaser/linux/sles_156_arm.yml diff --git a/build/goreleaser/linux/sles_156_arm.yml b/build/goreleaser/linux/sles_156_arm.yml new file mode 100644 index 000000000..28c5629d6 --- /dev/null +++ b/build/goreleaser/linux/sles_156_arm.yml @@ -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: 'caos-team@newrelic.com' + 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 diff --git a/build/release.mk b/build/release.mk index 7799c3e4d..f840fc5ee 100644 --- a/build/release.mk +++ b/build/release.mk @@ -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 @@ -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) diff --git a/build/upload-schema-linux-rpm.yml b/build/upload-schema-linux-rpm.yml index c399c7f21..9890cb0fb 100644 --- a/build/upload-schema-linux-rpm.yml +++ b/build/upload-schema-linux-rpm.yml @@ -148,6 +148,7 @@ - 15.3 - 15.4 - 15.5 + - 15.6 - src: "newrelic-infra-{version}-1.sles{os_version}.{arch}.rpm.sum" arch: