Merge ~sajoupa/prometheus-snap:build-latest-stable into ~canonical-is-sa/prometheus-snap:prometheus2

Proposed by Laurent Sesquès
Status: Merged
Approved by: Barry Price
Approved revision: d8cc1ff445ae6303838e49ad7bb1822e75627d36
Merged at revision: ad877f3c9337f6e3c68526afdd78e90db53ae44f
Proposed branch: ~sajoupa/prometheus-snap:build-latest-stable
Merge into: ~canonical-is-sa/prometheus-snap:prometheus2
Diff against target: 44 lines (+6/-13)
1 file modified
snapcraft.yaml (+6/-13)
Reviewer Review Type Date Requested Status
Barry Price Approve
Review via email: mp+365443@code.launchpad.net

Commit message

automatically build for the latest prometheus stable release

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Barry Price (barryprice) wrote :

+1

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision ad877f3c9337f6e3c68526afdd78e90db53ae44f

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml b/snapcraft.yaml
2index bf7b675..7c24097 100644
3--- a/snapcraft.yaml
4+++ b/snapcraft.yaml
5@@ -1,5 +1,5 @@
6 name: prometheus
7-version: 2.8.0
8+adopt-info: prometheus
9 grade: stable
10 summary: The Prometheus monitoring system and time series database
11 description: |
12@@ -26,27 +26,20 @@ parts:
13 after: [go]
14 plugin: go
15 source: https://github.com/prometheus/prometheus.git
16- source-tag: v2.8.0
17 go-importpath: github.com/prometheus/prometheus
18 build: |
19 export "GOPATH=$PWD/../go"
20 cd ../go/src/github.com/prometheus/prometheus/
21+ version="$(git tag -l | grep -v '\-rc' | sort -V | tail -n 1)"
22+ snapcraftctl set-version "$version"
23+ git checkout tags/$version
24 make build
25 install: |
26 mkdir $SNAPCRAFT_PART_INSTALL/bin
27+ mkdir -p $SNAPCRAFT_PART_INSTALL/etc/prometheus
28 cp -p $SNAPCRAFT_PART_INSTALL/../src/promtool $SNAPCRAFT_PART_INSTALL/bin/
29 cp -p $SNAPCRAFT_PART_INSTALL/../src/prometheus $SNAPCRAFT_PART_INSTALL/bin/
30- example-config:
31- plugin: dump
32- source: https://github.com/prometheus/prometheus.git
33- source-tag: v2.8.0
34- source-type: git
35- organize:
36- documentation/examples/prometheus.yml: etc/prometheus/prometheus.yml.example
37- stage:
38- - etc/prometheus/prometheus.yml.example
39- prime:
40- - etc/prometheus/prometheus.yml.example
41+ cp -p $SNAPCRAFT_PART_INSTALL/../src/documentation/examples/prometheus.yml $SNAPCRAFT_PART_INSTALL/etc/prometheus/prometheus.yml.example
42 snap-wrappers:
43 plugin: dump
44 source: .

Subscribers

People subscribed via source and target branches