{"repo":"rajatjindal/krew-release-bot","free":true,"listed":false,"github":"https://github.com/rajatjindal/krew-release-bot","clone":"git clone https://github.com/rajatjindal/krew-release-bot.git","description":"bot to bump version of plugin in krew-index on new releases","language":"Go","stars":54,"topics":["krew","release","bot","github","golang","kubernetes","kubectl"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"krew-release-bot is a bot that automates the update of plugin manifests in krew-index when a new version of your kubectl plugin is released. If a release is marked as a 'prerelease' in github, it will not be released to the krew index. To trigger krew-release-bot you can use a github-action which sends the event to the bot. Basic Setup - Make sure you have enabled github actions for your repo - Add a .krew.yaml template file at the root of your repo. Refer to kubectl-evict-pod repo for an example. - you could use https://rajatjindal.com/tools/krew-release-bot-helper/ for generating template for your plugin - To setup the action, add the following snippet after the step that publishes the new release and assets: Check out the goreleaser example below for details. Example when using go-releaser /.github/workflows/release.yml \\ \\ You can also customize the release assets names, platforms for which build is done using .goreleaser.yml file in root of your git repo. Examples using krew-release-bot in different ways - bash based plugins - multiple plugins published from one repo - circle-ci - travis-ci Testing the template file You can test the template file rendering before check-in to the repo by running following command Inputs for the action Key Default Value Description ------------------ ---------------------- ------------------------------------------------------------------------------------ workdir env.GITHUB WORKSPACE Overrides the GitHub workspace directory path krew temp","default_branch":null,"files":null,"tree":[],"storefront":"/r/rajatjindal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rajatjindal/krew-release-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}