Skip to content

Commit

Permalink
feat: Set up automated releases via krew
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehamel committed Oct 28, 2020
1 parent af862bd commit 1210d1e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.38
48 changes: 48 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: trace
spec:
version: {{ .TagName }}
homepage: https://github.com/iovisor/kubectl-trace
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: kubectl-trace
- selector:
matchLabels:
os: darwin
arch: 386
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_darwin_386.tar.gz" .TagName }}
bin: kubectl-trace
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: kubectl-trace
- selector:
matchLabels:
os: linux
arch: 386
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_linux_386.tar.gz" .TagName }}
bin: kubectl-trace
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
bin: kubectl-trace.exe
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/iovisor/kubectl-trace/releases/download/{{ .TagName }}/kubectl-trace_{{ .TagName }}_windows_386.tar.gz" .TagName }}
bin: kubectl-trace.exe
shortDescription: Trace Kubernetes pods and nodes with system tools
description: |
Usage:
Read more documentation at: https://github.com/iovisor/kubectl-trace

0 comments on commit 1210d1e

Please sign in to comment.