Skip to content

Commit e79dd12

Browse files
committed
Sign Plugin #3
Got the Grafana API key, now sign it
1 parent 4289cf5 commit e79dd12

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,17 @@ Use Basic Auth only if these limitations are acceptable!
5151
Via the [Grafana CLI](https://grafana.com/docs/grafana/latest/administration/cli/):
5252

5353
```BASH
54-
$ grafana-cli --pluginUrl https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.7/cloudspout-button-panel.zip \
54+
$ grafana-cli --pluginUrl https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.18/cloudspout-button-panel.zip \
5555
plugins install cloudspout-button-panel
5656
```
5757

58-
For Grafna >= 7.3.0 you must also set either
59-
* the environment variable `GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=cloudspout-button-panel`
60-
* update the Grafana configuration to include
61-
```
62-
[plugins]
63-
allow_loading_unsigned_plugins=cloudspout-button-panel
64-
```
65-
6658
### Docker
6759

6860
Use [Grafana's environment variable](https://grafana.com/docs/grafana/latest/installation/docker/#build-and-run-a-docker-image-with-pre-installed-plugins) to add this plugin to your installation:
6961

7062
```BASH
7163
$ docker run -p 3000:3000 -it \
72-
-e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=cloudspout-button-panel \
73-
-e "GF_INSTALL_PLUGINS=https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.7/cloudspout-button-panel.zip;cloudspout-button-panel" \
64+
-e "GF_INSTALL_PLUGINS=https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.18/cloudspout-button-panel.zip;cloudspout-button-panel" \
7465
grafana/grafana:7.3.1
7566
```
7667

dist/cloudspout-button-panel.zip

-160 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"github": {
4343
"release": true,
4444
"assets": [
45-
"dist/*.zip"
45+
"cloudspout-button-panel.zipp"
4646
]
4747
},
4848
"npm": {

zip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ glob(folderPath, {cwd}, (err, files) => {
1313
return err;
1414
}
1515

16-
const output = fs.createWriteStream('dist/' + out);
16+
const output = fs.createWriteStream('./' + out);
1717
const archive = archiver('zip', {zlib:{level: 9}});
1818
archive.pipe(output);
1919

0 commit comments

Comments
 (0)