-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d75216a
commit 6aaabd5
Showing
24 changed files
with
3,453 additions
and
7,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Bug report | ||
about: Report bug/issue to improve the plugin | ||
title: "[Bug] Title " | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Version Details:** | ||
- Grafana version : | ||
- Plugin version : | ||
- Did this work in any other version of Grafana : | ||
- What datasource you use : | ||
|
||
**Panel JSON** | ||
If applicable, provide panel json. Make sure to mask any sensitive information | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[Feature Request] Title" | ||
labels: feature-request | ||
assignees: '' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Help Required | ||
about: Ask questions like How to ? | ||
title: "[Help Required] Title" | ||
labels: help wanted | ||
assignees: '' | ||
--- | ||
|
||
**What you are struggling with** | ||
|
||
Describe what assistance you need | ||
|
||
**What you tried** | ||
|
||
Describe what you tried | ||
|
||
**Related Issues and Links** | ||
|
||
Related links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build & Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install Dependencies | ||
run: | | ||
yarn install --frozen-lockfile; | ||
- name: Test | ||
run: | | ||
yarn test; | ||
- name: Build | ||
run: | | ||
yarn build; | ||
- name: Sign plugin | ||
run: npx @grafana/toolkit plugin:sign | ||
env: | ||
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} | ||
- name: Deploy | ||
run: | | ||
echo $(date) > dist/LAST_UPDATED; | ||
git config --global user.email "[email protected]"; | ||
git config --global user.name "Github Actions"; | ||
git add --force dist/ | ||
git commit -m "Build by Github Actions" | ||
git push | ||
git status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: NodeJS Setup | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Dependencies Install | ||
run: | | ||
echo "Grafana Boom Table plugin - Install dependencies"; | ||
yarn install --frozen-lockfile; | ||
- name: Test | ||
run: | | ||
echo "Grafana Boom Table plugin - Test"; | ||
yarn test; | ||
- name: Build | ||
run: | | ||
echo "Grafana Boom Table plugin - Build"; | ||
yarn build; | ||
- name: Sign plugin | ||
run: npx @grafana/toolkit plugin:sign | ||
env: | ||
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} | ||
- name: Get plugin information | ||
run: | | ||
sudo apt-get install jq | ||
export GRAFANA_PLUGIN_ID=$(cat dist/plugin.json | jq -r .id) | ||
export GRAFANA_PLUGIN_VERSION=$(cat dist/plugin.json | jq -r .info.version) | ||
export GRAFANA_PLUGIN_TYPE=$(cat dist/plugin.json | jq -r .type) | ||
export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip | ||
export GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT}.md5 | ||
echo "GRAFANA_PLUGIN_ID=${GRAFANA_PLUGIN_ID}" >> $GITHUB_ENV | ||
echo "GRAFANA_PLUGIN_VERSION=${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_ENV | ||
echo "GRAFANA_PLUGIN_TYPE=${GRAFANA_PLUGIN_TYPE}" >> $GITHUB_ENV | ||
echo "GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_ENV | ||
echo "GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}" >> $GITHUB_ENV | ||
- name: Package plugin | ||
run: | | ||
mv dist $GRAFANA_PLUGIN_ID | ||
zip $GRAFANA_PLUGIN_ARTIFACT $GRAFANA_PLUGIN_ID -r | ||
md5sum $GRAFANA_PLUGIN_ARTIFACT > $GRAFANA_PLUGIN_ARTIFACT_CHECKSUM | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Add plugin to release | ||
id: upload-plugin-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./${{ env.GRAFANA_PLUGIN_ARTIFACT }} | ||
asset_name: ${{ env.GRAFANA_PLUGIN_ARTIFACT }} | ||
asset_content_type: application/zip | ||
- name: Add checksum to release | ||
id: upload-checksum-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./${{ env.GRAFANA_PLUGIN_ARTIFACT_CHECKSUM }} | ||
asset_name: ${{ env.GRAFANA_PLUGIN_ARTIFACT_CHECKSUM }} | ||
asset_content_type: text/plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.tscache/ | ||
*.tmp.txt | ||
node_modules/ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.