Skip to content

Commit

Permalink
fix(krew): update krew action (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: rumstead <[email protected]>
  • Loading branch information
rumstead authored Apr 19, 2024
1 parent 87ab9c1 commit ec08675
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: GoReleaser
Expand Down
40 changes: 10 additions & 30 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,13 @@ spec:
This plugin allows users to confirm when they get prompted
on certain kubectl commands.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/download/{{ .TagName }}/kubectl-safe_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: kubectl-safe
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/download/{{ .TagName }}/kubectl-safe_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
bin: kubectl-safe
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/download/{{ .TagName }}/kubectl-safe_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: kubectl-safe
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/download/{{ .TagName }}/kubectl-safe_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
bin: kubectl-safe
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/download/{{ .TagName }}/kubectl-safe_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
bin: kubectl-safe.exe
- selector:
matchExpressions:
- key: os
operator: In
values:
- darwin
- linux
- windows
{{addURIAndSha "https://github.com/rumstead/kubectl-safe/releases/{{ .TagName }}.tar.gz" .TagName }}
bin: kubectl-safe

0 comments on commit ec08675

Please sign in to comment.