Skip to content

Commit

Permalink
Disable plugin signing (#3)
Browse files Browse the repository at this point in the history
Also fixes a docker compose path issue
  • Loading branch information
bryanlb authored Jul 28, 2022
1 parent 6ae7acf commit 9d15b4c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ jobs:
version: latest
args: buildAll

- name: Sign plugin
run: yarn sign
env:
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
# Signing disabled as this is not a community published plugin yet
#
# - name: Sign plugin
# run: yarn sign
# env:
# GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.

- name: Get plugin metadata
id: metadata
Expand Down Expand Up @@ -116,13 +118,15 @@ jobs:
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
echo "::set-output name=checksum::$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
- name: Lint plugin
run: |
git clone https://github.com/grafana/plugin-validator
pushd ./plugin-validator/pkg/cmd/plugincheck
go install
popd
plugincheck ${{ steps.metadata.outputs.archive }}
# Lint disabled as this validates a MANIFEST generated by signing exists, which we do not have yet
#
# - name: Lint plugin
# run: |
# git clone https://github.com/grafana/plugin-validator
# pushd ./plugin-validator/pkg/cmd/plugincheck
# go install
# popd
# plugincheck ${{ steps.metadata.outputs.archive }}

- name: Create release
id: create_release
Expand Down Expand Up @@ -157,8 +161,10 @@ jobs:
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
asset_content_type: text/plain

- name: Publish to Grafana.com
run: |
echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
echo
echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .
# Disabled, as we are not currently publishing to Grafana.com - even though this is only an echo statement
#
# - name: Publish to Grafana.com
# run: |
# echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
# echo
# echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- '3000:3000'
volumes:
- ./provisioning:/etc/grafana/provisioning
- ./:/var/lib/grafana/plugins/slack-kaldb-app
- ./dist:/var/lib/grafana/plugins/slack-kaldb-app
environment:
GF_LOG_MODE: "console file"
GF_LOG_LEVEL: "debug"
Expand Down
3 changes: 0 additions & 3 deletions automatic.yml → provisioning/datasources/automatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ deleteDatasources:
- name: KalDB
orgId: 1

apps:
- type: slack-kaldb-app

datasources:
- name: KalDB Query [ES]
type: elasticsearch
Expand Down

0 comments on commit 9d15b4c

Please sign in to comment.