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

Enable using the bot without GitHub actions #11

Open
corneliusweig opened this issue Jan 10, 2020 · 4 comments
Open

Enable using the bot without GitHub actions #11

corneliusweig opened this issue Jan 10, 2020 · 4 comments

Comments

@corneliusweig
Copy link

Some people can not or do not want to use GitHub actions. For those it would be great to have instructions how to use the bot outside of GH actions.

@rajatjindal
Copy link
Owner

thanks for reporting this. can you please elaborate how the release process might look like for those scenario?

@rajatjindal
Copy link
Owner

Hi @corneliusweig when you get chance, can you please clarify this issue.

@corneliusweig
Copy link
Author

corneliusweig commented Jan 15, 2020

Hey @rajatjindal, I imagine something like this:

having instructions to use krew-release-bot as a standalone binary, and make that possible. Then people can call this binary whenever it makes sense and don't have to rely on the GH action.


Alternatively, the server-side could do more logic:

  1. Some plugin creates a release and puts release artifacts in GH.
  2. A hook POSTs to https://krew-release-bot.wherever/ with payload
    {
      "repo": "https://github.com/rajatjindal/some-plugin",
      "plugin": "some-plugin",
      "tag": "v1.2.3"
    }
  3. Release bot clones krew-index
  4. Release bot fetches .krew.yaml template from given repo
  5. Release bot applies substitutions in template
  6. Release bot creates a PR in krew-index for the given plugin

Then, every plugin can simply do a POST request to trigger the PR. This is so simple, that it can be done with cURL

@rajatjindal
Copy link
Owner

I like the idea of being able to run as standalone binary, will add an example for that.

we just removed the code to do extra processing on recommendation from Ahmet. :)

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

No branches or pull requests

2 participants