-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send subctl version updates to krew-index
Now that subctl is available as a krew plugin, a PR needs to be sent to krew-index repo to update subctl version when a new version is released. krew-release-bot automates this process by adding a .krew.yaml file and a GHA to our release process. This PR adds a GHA that automatically pushes a PR to krew-index repo updating the subctl version, by rendering .krew.yaml file, after a new submariner version is tagged. For detailed read: https://github.com/rajatjindal/krew-release-bot Epic: submariner-io/enhancements#182 Signed-off-by: Janki Chhatbar <[email protected]>
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,6 @@ jobs: | |
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }} | ||
run: make do-release | ||
|
||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# This template is generated by krew-release-bot-helper | ||
# https://rajatjindal.com/tools/krew-release-bot-helper/ | ||
|
||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: subm | ||
spec: | ||
version: "{{ .TagName }}" | ||
homepage: https://github.com/submariner-io/subctl | ||
shortDescription: "Manages Submariner and its services" | ||
description: | | ||
CLI to install, uninstall and troubleshoot Submariner on a Kubernetes cluster. | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-linux-amd64.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: arm64 | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-linux-arm64.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: arm | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-linux-arm.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: ppc64le | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-linux-ppc64le.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-windows-amd64.exe.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-darwin-amd64.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: arm64 | ||
{{addURIAndSha "https://github.com/submariner-io/releases/releases/download/{{ .TagName }}/subctl-{{ .TagName }}-darwin-arm64.tar.gz" .TagName | indent 6 }} | ||
files: | ||
- from: subctl*/subctl | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
bin: subctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ rules: | |
|
||
ignore: | | ||
/projects | ||
.krew.yaml |