Skip to content

Commit

Permalink
chore(deps): bump prometheus-pushgateway version to v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Jan 19, 2024
1 parent f486e8f commit 69fa7bb
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 1.7.0/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: prometheus-pushgateway
title: Prometheus Pushgateway
summary: Prometheus PushGateway in a ROCK.
description: "The Prometheus Pushgateway exists to allow ephemeral and batch jobs to expose their metrics to Prometheus."
version: "1.7.0"
base: ubuntu@22.04
build-base: ubuntu@22.04
license: Apache-2.0
services:
prometheus-pushgateway:
command: /bin/pushgateway
override: replace
startup: enabled
platforms:
amd64:
parts:
prometheus-pushgateway:
plugin: go
source: https://github.com/prometheus/pushgateway
source-type: git
source-tag: "v1.7.0"
build-snaps:
- go/1.20/stable
build-packages:
- make
override-build: |
make build
install -D -m755 pushgateway ${CRAFT_PART_INSTALL}/bin/pushgateway
organize:
prometheus-pushgateway: bin/pushgateway
stage:
- bin/pushgateway
# We moved this here because: https://github.com/canonical/rockcraft/issues/343
ca-certs:
plugin: nil
stage-packages: [ca-certificates]
deb-security-manifest:
plugin: nil
after:
- prometheus-pushgateway
- ca-certs
override-prime: |
set -x
mkdir -p $CRAFT_PRIME/usr/share/rocks/
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query

0 comments on commit 69fa7bb

Please sign in to comment.