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

[Build][kubectl-plugin] Add release script for kubectl plugin #2407

Conversation

MortalHappiness
Copy link
Member

@MortalHappiness MortalHappiness commented Sep 27, 2024

Why are these changes needed?

See the description in the corresponding issue for details.

This PR will build the kubectl plugin with goreleaser and upload them to GitHub release whenever a semver tag is created.

See the example auto-generated GitHub release here:

https://github.com/MortalHappiness/kuberay/releases/tag/v1.3.0-rc.0

The first version of plugin has to be submitted manually by us to the krew-index repo, so I'll submit a PR to the krew-index repo once a release candidate is created.

Related issue number

Closes: #2406

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@andrewsykim
Copy link
Collaborator

@chiayi PTAL

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO(MortalHappiness): This won't work now. The first version of plugin has to be submitted manually by use to the krew-index repo, so I'll submit a PR to the krew-index repo once a release candidate is created.
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the standard project used with krew to publish plugin?

Copy link
Member Author

@MortalHappiness MortalHappiness Sep 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's mentioned in the official doc and says strongly recommends

https://krew.sigs.k8s.io/docs/developer-guide/release/automating-updates/

@andrewsykim andrewsykim merged commit 99505a5 into ray-project:master Sep 28, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add release script for kubectl plugin
3 participants