Skip to content

Commit

Permalink
feat: use krew-release-bot to automate releasing new version to krew-…
Browse files Browse the repository at this point in the history
…index (#194)

# Description

As title
## Related Issue

#108

## Checklist

- [x] I have read the [contributing
documantation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`)
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [x] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.

## Screenshots (if applicable)

Please add any relevant screenshots or GIFs to showcase the changes
made.

## Additional Notes

Add any additional notes or context about the pull request here.

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
  • Loading branch information
nddq authored Mar 29, 2024
1 parent 72e1787 commit 2087923
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
53 changes: 53 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: retina
spec:
version: {{ .TagName }}
homepage: https://github.com/microsoft/retina
shortDescription: Distributed network captures and telemetry
description: |
The Retina CLI plugin enables users to collect distributed network captures in an
OS and vendor-agnostic way. Capture jobs can be created via the CLI to target specific
nodes or pods in a time-limited or size limited way. Capture jobs can also filter specific
network traffic based on the given configurations; more info on the configurations can be
found on the official docs. The captures are collected in formats like pcap, etl and
text files, and can then be stored at remote storage destinations.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-darwin-amd64-{{ .TagName }}.tar.gz" .TagName }}
bin: kubectl-retina-darwin-amd64
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-darwin-arm64-{{ .TagName }}.tar.gz" .TagName }}
bin: kubectl-retina-darwin-arm64
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-linux-amd64-{{ .TagName }}.tar.gz" .TagName }}
bin: kubectl-retina-linux-amd64
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-linux-arm64-{{ .TagName }}.tar.gz" .TagName }}
bin: kubectl-retina-linux-arm64
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-windows-amd64-{{ .TagName }}.zip" .TagName }}
bin: kubectl-retina-windows-amd64.exe
- selector:
matchLabels:
os: windows
arch: arm64
{{addURIAndSha "https://github.com/microsoft/retina/releases/download/{{ .TagName }}/kubectl-retina-windows-arm64-{{ .TagName }}.zip" .TagName }}
bin: kubectl-retina-windows-arm64.exe

0 comments on commit 2087923

Please sign in to comment.