diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1fe5fdb..b482640 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,4 +27,7 @@ jobs: - name: release run: make release env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + + - name: Update new version in krew-index + uses: rajatjindal/krew-release-bot@v0.0.46 \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ab76412..cf0377f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT +version: 2 project_name: kubectl-dpm before: hooks: @@ -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 diff --git a/.krew.yaml b/.krew.yaml new file mode 100644 index 0000000..ccde3f1 --- /dev/null +++ b/.krew.yaml @@ -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 }}