-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add bundle plugin #71
Conversation
…ctively export to another package)
This reverts commit 572dab9.
Hey @SandersAaronD 👋 |
Still waiting on update from @SandersAaronD |
Hey folks, we've had discussions here and in other channels that this PR is considered too specialised to be included here. As a result of this PR we documented what the scope of this repository is, which was something we lacked before. I'm going to close this PR. I encourage you @SandersAaronD to find a home closer to the repos that will need this. |
This bundles a grafana plugin, which can have a backend or no backend, into a properly signed folder of zip files for both current version and "latest" which can be uploaded in order to publish the plugin. By default it zips from
./dist
into__to-upload__
, but both of those are configurable parameters.This workflow is structured the way it is with most logic in a sub-package to facilitate using the package as a standalone command outside of a github action if someone has a workflow that calls for that or is using this logic somewhere outside of Grafana to package a plugin.
Implemented in typescript for good portability and maintainability and to integrate well with github actions without introducing any extra dependencies (on, e.g., golang runtimes or binaries). The same thing can presently be accomplished by downloading a grabpl binary onto a machine with a golang runtime and calling it, as can be seen here.