From 187f894ed6fcc689e05eab09e437a5b92434d20a Mon Sep 17 00:00:00 2001 From: lmolas Date: Wed, 14 Oct 2020 14:42:03 +0200 Subject: [PATCH] use krew release bot --- .github/workflows/release.yml | 4 +++- .krew.yaml | 23 ++++++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1384557..d50e645 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,4 +19,6 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Update new version in krew-index + uses: rajatjindal/krew-release-bot@v0.0.38 \ No newline at end of file diff --git a/.krew.yaml b/.krew.yaml index 8471a71..759ef6e 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -3,7 +3,7 @@ kind: Plugin metadata: name: view-cert spec: - version: v0.0.0 + version: {{ .TagName }} homepage: https://github.com/lmolas/kubectl-view-cert shortDescription: View certificate information stored in secrets description: | @@ -14,6 +14,23 @@ spec: matchLabels: os: darwin arch: amd64 - uri: https://github.com/lmolas/kubectl-view-cert/releases/download/v0.0.1/kubectl-view-cert_v0.0.1.darwin_amd64.tar.gz - sha256: ac7305dcab0913945f2edb32e804673cc38bf7eceef0409bd595f603fe8e20f8 + {{addURIAndSha "https://github.com/lmolas/kubectl-view-cert/releases/download/{{ .TagName }}/kubectl-view-cert_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }} bin: kubectl-view-cert + - selector: + matchLabels: + os: linux + arch: amd64 + {{addURIAndSha "https://github.com/lmolas/kubectl-view-cert/releases/download/{{ .TagName }}/kubectl-view-cert_{{ .TagName }}_linux_amd64.tar.gz" .TagName }} + bin: kubectl-view-cert + - selector: + matchLabels: + os: linux + arch: arm64 + {{addURIAndSha "https://github.com/lmolas/kubectl-view-cert/releases/download/{{ .TagName }}/kubectl-view-cert_{{ .TagName }}_linux_arm64.tar.gz" .TagName }} + bin: kubectl-view-cert + - selector: + matchLabels: + os: windows + arch: amd64 + {{addURIAndSha "https://github.com/lmolas/kubectl-view-cert/releases/download/{{ .TagName }}/kubectl-view-cert_{{ .TagName }}_windows_amd64.tar.gz" .TagName }} + bin: kubectl-view-cert.exe \ No newline at end of file