Skip to content
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

Template for spin plugin #19

Open
jpflueger opened this issue Feb 1, 2023 · 4 comments
Open

Template for spin plugin #19

jpflueger opened this issue Feb 1, 2023 · 4 comments
Labels
question Further information is requested

Comments

@jpflueger
Copy link

Is there a template if I wanted to write my own spin plugin? Ideally instead of cloning this repo and running createManifest.sh I would like to be able to spin new plugin my-plugin to create a new plugin.

@jpflueger jpflueger added the question Further information is requested label Feb 1, 2023
@kate-goldenring
Copy link
Collaborator

@itowlson was working on a plugin pluginify that would take a binary and produce a manifest for it

@itowlson
Copy link
Contributor

itowlson commented Feb 1, 2023

Haha, I was thinking of creating a plugin template (tentatively in the pluginify repo so I could have it use spin-pluginify.toml), but I wanted to figure out GitHub actions integration first!

@jpflueger The templates system wouldn't maintain the manifest for you - you'd still need to run a tool or script to regenerate the tar file and manifest. All the templates system would do is scaffold the source code for you. But if that would be useful then it would be pretty easy to put one together (famous last words).

@rajatjindal
Copy link
Contributor

rajatjindal commented Mar 28, 2023

we can automate the regeneration part similar to what is done for kubectl plugins
using https://github.com/rajatjindal/krew-release-bot

@itowlson
Copy link
Contributor

@rajatjindal I did a GH action to auto pluginify and release the SQS trigger. It should be fairly boilerplatey. If we made an official version of pluginify then we could wrap it in an official action...?! Though not sure whether/how to automate PRing it to the official catalogue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants