Skip to content

Commit

Permalink
chore: release new versions on krew index (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Constanti <github@constanti.de>
  • Loading branch information
bavarianbidi committed Jul 22, 2024
1 parent 73a9e79 commit 35b9026
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ jobs:
- name: release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}

- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.46
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: MIT
version: 2
project_name: kubectl-dpm
before:
hooks:
Expand All @@ -22,6 +23,7 @@ builds:
archives:
- id: "tar ball"
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
- id: "binary"
format: binary

Expand Down
37 changes: 37 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: MIT
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: dpm
spec:
version: "{{ .TagName }}"
homepage: https://github.com/bavarianbidi/kubectl-dpm
shortDescription: "Manages custom debug profiles for pods"
description: |
Wraps the custom debug profile subcommand to make it easier
to switch between different debug profiles for pods.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/bavarianbidi/kubectl-dpm/releases/download/{{ .TagName }}/kubectl-dpm_{{ .TagName }}_darwin_amd64.tar.gz" .TagName | indent 6 }}
bin: kubectl-dpm
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/bavarianbidi/kubectl-dpm/releases/download/{{ .TagName }}/kubectl-dpm_{{ .TagName }}_darwin_arm64.tar.gz" .TagName | indent 6 }}
bin: kubectl-dpm
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/bavarianbidi/kubectl-dpm/releases/download/{{ .TagName }}/kubectl-dpm_{{ .TagName }}_linux_amd64.tar.gz" .TagName | indent 6 }}
bin: kubectl-dpm
- selector:
matchLabels:
os: linux
arch: arm64
bin: kubectl-dpm
{{addURIAndSha "https://github.com/bavarianbidi/kubectl-dpm/releases/download/{{ .TagName }}/kubectl-dpm_{{ .TagName }}_linux_arm64.tar.gz" .TagName | indent 6 }}

0 comments on commit 35b9026

Please sign in to comment.