-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathgrafana.yaml
75 lines (63 loc) · 2.12 KB
/
grafana.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
package:
name: grafana
version: 10.3.3
epoch: 0
description: The open and composable observability and data visualization platform.
copyright:
- license: AGPL-3.0-or-later
dependencies:
runtime:
- bash
environment:
contents:
packages:
- build-base
- busybox
- findutils
- go
- nodejs-18
- posix-libc-utils
- py3-setuptools
- python3
- yarn
pipeline:
- uses: git-checkout
with:
expected-commit: 252761264e22ece57204b327f9130d3b44592c01
repository: https://github.com/grafana/grafana
tag: v${{package.version}}
- runs: |
yarn install
yarn run build
yarn run plugins:build-bundled
# Our default LDFLAGS cause an issue with grafana. We need to remove '-z, noexecheap' from LDFLAGS
# Ref https://github.com/wolfi-dev/os/issues/7419
LDFLAGS="$(echo $LDFLAGS | sed 's/,-z,noexecheap//g')"
# Bump the version of wire used, the old version panics with new Go
# https://github.com/google/wire/issues/400
sed -i "s/v0.5.0/v0.6.0/g" .bingo/wire.mod
make build
mkdir -p ${{targets.destdir}}/usr/bin
mv ./bin/linux-*/* ${{targets.destdir}}/usr/bin/
- name: package
runs: |
mkdir -p ${{targets.destdir}}/usr/share/grafana/plugins-bundled
mkdir -p ${{targets.destdir}}/usr/share/grafana/scripts
mkdir -p ${{targets.destdir}}/usr/share/grafana/bin
mv ./conf ${{targets.destdir}}/usr/share/grafana/
mv ./plugins-bundled/internal ${{targets.destdir}}/usr/share/grafana/plugins-bundled/
mv ./public ${{targets.destdir}}/usr/share/grafana/
mv ./scripts/*.sh ${{targets.destdir}}/usr/share/grafana/scripts/
mkdir -p ${{targets.destdir}}/etc/grafana/
cp ${{targets.destdir}}/usr/share/grafana/conf/sample.ini ${{targets.destdir}}/etc/grafana/grafana.ini
subpackages:
- name: grafana-oci-compat
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/opt/grafana
mv ./packaging/docker/run.sh ${{targets.subpkgdir}}/opt/grafana/
update:
enabled: true
github:
identifier: grafana/grafana
strip-prefix: v