Skip to content

Commit

Permalink
chore: setup krew index release
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Jun 27, 2024
1 parent aa76eb5 commit 7de33aa
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Update new version in krew-index
uses: rajatjindal/[email protected]
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: duplicate
spec:
version: {{ .TagName }}
homepage: https://github.com/Telemaco019/duplik8s
shortDescription: Duplicate Pods in a Kubernetes cluster.
description: |
This plugin makes it super easy to duplicate Kubernetes Pods with overridden commands and configurations.
It's similar to `kubectl debug --copy-to`, but with more features and flexibility.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Darwin_x86_64.tar.gz" .TagName | indent 6 }}
bin: duplik8s
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Darwin_arm64.tar.gz" .TagName | indent 6 }}
bin: duplik8s
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Linux_x86_64.tar.gz" .TagName | indent 6 }}
bin: duplik8s
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Linux_arm64.tar.gz" .TagName | indent 6 }}
bin: duplik8s
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Windows_x86_64.zip" .TagName | indent 6 }}
bin: duplik8s.exe
- selector:
matchLabels:
os: windows
arch: arm64
{{addURIAndSha "https://github.com/Telemaco019/duplik8s/releases/download/{{ .TagName }}/duplik8s_Windows_arm64.zip" .TagName | indent 6 }}
bin: duplik8s.exe

0 comments on commit 7de33aa

Please sign in to comment.