Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

add grafana dashboard #1

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
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
18 changes: 9 additions & 9 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
push:
branches:
- main
tags: ["*"]
tags: ["v*"]
pull_request:
branches:
- main
Expand Down Expand Up @@ -50,6 +50,11 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_SERVER_ADDRESS }}/grafana_plugins_init
- name: Login to GitHub Package Registry
uses: docker/login-action@v2
with:
Expand All @@ -60,16 +65,11 @@ jobs:
uses: docker/setup-qemu-action@v2.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
# Optionally strip `v` prefix
strip_v: true
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY_SERVER_ADDRESS }}/grafana_plugins_init:${{steps.tag.outputs.tag}}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
vendor/

# IDE config directories
.idea/
.vscode/

# Bundle or prebuild cached compress files
dist/*.tgz
charts/*.tgz
*.tgz

# local debug config
test/debug-config.yaml

# GitBook build files
_book/


# Runbook
docs/runbooks/public/
docs/runbooks/resources/

.DS_Store
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM quay.io/grafana-operator/grafana_plugins_init:0.0.6
FROM busybox:1.35

WORKDIR /app

COPY /plugins /app/plugins
COPY /dashboards /app/dashboards

CMD [ "unzip", "/app/plugins/marcusolsson-json-datasource-1.3.10.zip", "-d", "/opt/plugins" ]
CMD unzip -o /app/plugins/marcusolsson-json-datasource-1.3.10.zip -d /opt/plugins && cp -r /app/dashboards /opt/plugins
Loading
Loading