Skip to content

update package pipeline and add bitnami-compat #43665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions grafana-grafonnet.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: grafana-grafonnet
version: 0.0_git20231114
epoch: 2
epoch: 3
description: Jsonnet library for generating Grafana dashboards
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -29,12 +29,40 @@ pipeline:
install -m755 *.json "${{targets.destdir}}"/opt/jsonnet/grafonnet/

for i in clean custom raw; do
mkdir -p ${{targets.destdir}}/opt/jsonnet/grafonnet/$i
mv $i "${{targets.destdir}}"/opt/jsonnet/grafonnet/$i/
if [ -d "$i" ]; then
cp -r "$i" "${{targets.destdir}}"/opt/jsonnet/grafonnet/
fi
done

- uses: strip

subpackages:
- name: ${{package.name}}-bitnami-compat
description: "compat package for bitnami/grafonnet library"
pipeline:
- uses: bitnami/compat
with:
image: grafana-operator
version-path: 5/debian-12
- runs: |
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/grafonnet-lib/
chmod g+rwX ${{targets.subpkgdir}}/opt/bitnami
ln -sf /opt/jsonnet/grafonnet ${{targets.subpkgdir}}/opt/bitnami/grafonnet-lib/grafonnet
test:
pipeline:
- runs: |
ls -l /opt/bitnami/grafonnet-lib/grafonnet

test:
pipeline:
- runs: |
test -f /opt/jsonnet/grafonnet/alerting.libsonnet || (echo "Missing alerting.libsonnet" && exit 1)
test -f /opt/jsonnet/grafonnet/jsonnetfile.json || (echo "Missing jsonnetfile.json" && exit 1)
for dir in clean custom raw; do
test -d /opt/jsonnet/grafonnet/$dir || (echo "Missing $dir directory" && exit 1)
done
test -f /opt/jsonnet/grafonnet/clean/dashboard.libsonnet || (echo "Missing clean/dashboard.libsonnet" && exit 1)

update:
enabled: false
exclude-reason: no releases or tags available
Loading