-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathgrafana-mimir.yaml
82 lines (73 loc) · 2.24 KB
/
grafana-mimir.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package:
name: grafana-mimir
version: "2.15.1"
epoch: 0
description: Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
copyright:
- license: AGPL-3.0-or-later
data:
- name: grafana-mimir-subpackages
items:
metaconvert: metaconvert --help
mimirtool: mimirtool version | grep ${{package.version}}
query-tee: query-tee --help
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go-1.23
pipeline:
- uses: git-checkout
with:
repository: https://github.com/grafana/mimir
tag: mimir-${{package.version}}
expected-commit: 0c1e06f13b90434e0e4da6118dcc2191ea23e8d7
# the repo has an ssh://git@github.com URI for mimir-prometheus
# so just rm the file and default to the https URL for go.mod
- runs: rm .gitconfig
- uses: go/bump
with:
deps: |-
golang.org/x/net@v0.36.0
modroot: .
- uses: go/build
with:
modroot: .
packages: ./cmd/mimir
ldflags: |
-X github.com/grafana/mimir/pkg/util/version.Branch=$(git rev-parse --abbrev-ref HEAD)
-X github.com/grafana/mimir/pkg/util/version.Revision=$(git rev-parse --short HEAD)
-X github.com/grafana/mimir/pkg/util/version.Version=${{package.version}}
output: grafana-mimir
subpackages:
- range: grafana-mimir-subpackages
name: ${{package.name}}-${{range.key}}
pipeline:
- uses: go/build
with:
modroot: .
packages: ./cmd/${{range.key}}
ldflags: |
-X github.com/grafana/mimir/pkg/util/version.Branch=$(git rev-parse --abbrev-ref HEAD)
-X github.com/grafana/mimir/pkg/util/version.Revision=$(git rev-parse --short HEAD)
-X github.com/grafana/mimir/pkg/util/version.Version=${{package.version}}
output: ${{range.key}}
test:
pipeline:
- runs: |-
${{range.value}}
update:
enabled: true
ignore-regex-patterns:
- distributed
- weekly
github:
identifier: grafana/mimir
strip-prefix: mimir-
use-tag: true
test:
pipeline:
- runs: |-
grafana-mimir -version | grep ${{package.version}}
grafana-mimir --version | grep ${{package.version}}