Skip to content

Commit

Permalink
fix nrpe_exporter download
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij authored Feb 20, 2024
1 parent 1673afc commit 883ede2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ parts:
build-packages:
- curl
override-pull: |
curl -L -O https://github.com/canonical/nrpe_exporter/releases/latest/download/nrpe_exporter-${CRAFT_TARGET_ARCH}
if [ $CRAFT_TARGET_ARCH == "amd64" ]; then
URI=https://github.com/canonical/nrpe_exporter/releases/latest/download/nrpe_exporter-amd64
elif [ $CRAFT_TARGET_ARCH == "arm64" ] | [ $CRAFT_TARGET_ARCH == "aarch64" ]; then
URI=https://github.com/canonical/nrpe_exporter/releases/latest/download/nrpe_exporter-arm64
fi
curl -L $URI -o nrpe_exporter-aarch64
vector:
plugin: dump
source: .
build-packages:
- curl
- tar
override-pull: |
VERSION=0.27.0
VERSION=0.36.0
if [ $CRAFT_TARGET_ARCH == "amd64" ]; then
ARCH=x86_64-unknown-linux-musl
elif [ $CRAFT_TARGET_ARCH == "arm64" ]; then
Expand Down

0 comments on commit 883ede2

Please sign in to comment.