Skip to content

Commit

Permalink
1st local build of Prometheus Exporter downloaded directly (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak authored Jan 22, 2024
1 parent 8b2768d commit f47d79c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ parts:
# update deps
apt-get install unzip
version="$(craftctl get version).0"
archive="prometheus-exporter-${version}.zip"
url="https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/${version}/${archive}"
curl -L -o "${archive}" "${url}"
version="$(craftctl get version)"
archive="prometheus-exporter-${version}-ubuntu0-20240119181708.zip"
url="https://launchpad.net/opensearch-plugin-prometheus-exporter-releases/2.x/exporter-${version}-ubuntu0/+download/"
curl -L -o "${archive}" "${url}${archive}"
unzip "${archive}" -d "${CRAFT_PART_INSTALL}/prometheus-exporter"
mkdir -p "${CRAFT_PART_INSTALL}/usr/share/opensearch/plugins"
Expand Down

0 comments on commit f47d79c

Please sign in to comment.