diff --git a/newrelic-infrastructure-bundle.yaml b/newrelic-infrastructure-bundle.yaml new file mode 100644 index 00000000000..4fc1333e25d --- /dev/null +++ b/newrelic-infrastructure-bundle.yaml @@ -0,0 +1,56 @@ +package: + name: newrelic-infrastructure-bundle + version: 3.2.2 + epoch: 0 + description: New Relic Infrastructure containerised agent bundle + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - wolfi-baselayout + - busybox + - build-base + - go + - ca-certificates-bundle + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/newrelic/infrastructure-bundle + tag: v${{package.version}} + expected-commit: ece3dc47380c31d131a17d2b3b9f42f9811545fc + destination: ${{package.name}} + + - working-directory: ${{package.name}} + pipeline: + - runs: | + go run downloader.go + + case "${{build.arch}}" in + x86_64) export TARGETARCH="amd64" ;; + aarch64) export TARGETARCH="arm64" ;; + *) echo "Unsupported architecture: ${{build.arch}}"; exit 1 ;; + esac + + cd ./out/$TARGETARCH + + mkdir -p ${{targets.destdir}}/var + mkdir -p ${{targets.destdir}}/etc + mkdir -p ${{targets.destdir}}/usr + + mv ./var/db "${{targets.destdir}}"/var + mv ./etc/newrelic-infra "${{targets.destdir}}"/etc + + mv ./usr/bin "${{targets.destdir}}"/usr + mv ./usr/share "${{targets.destdir}}"/usr + - uses: strip + +update: + enabled: true + github: + identifier: newrelic/infrastructure-bundle + use-tag: true + tag-filter: v + strip-prefix: v diff --git a/packages.txt b/packages.txt index 33f611951cb..13452e6875e 100644 --- a/packages.txt +++ b/packages.txt @@ -644,6 +644,7 @@ kubernetes-dashboard-metrics-scraper buildkitd nri-kubernetes newrelic-infra-operator +newrelic-infrastructure-bundle kine aws-load-balancer-controller cloudwatch-exporter