diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ae121c..8116c25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,14 +18,14 @@ jobs: with: go-version: '>=1.20' cache: true - # More assembly might be required: Docker logins, GPG, etc. It all depends - # on your needs. - uses: goreleaser/goreleaser-action@v4 with: # either 'goreleaser' (default) or 'goreleaser-pro': distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_CURRENT_TAG: ${{ github.ref_name }} + - name: Update new version in krew-index + uses: rajatjindal/krew-release-bot@v0.0.43 diff --git a/.krew.yaml b/.krew.yaml new file mode 100644 index 0000000..aa1ae18 --- /dev/null +++ b/.krew.yaml @@ -0,0 +1,36 @@ +apiVersion: krew.googlecontainertools.github.com/v1alpha2 +kind: Plugin +metadata: + name: kopilot +spec: + version: {{ .TagName }} + homepage: https://github.com/knight42/kopilot + shortDescription: Diagnose/audit resources with AI + description: | + Kopilot will send the yaml of target resource to AI services to help you troubleshoot the Kubernetes clusters + by diagnosing unhealthy workload or nodes, and audit Kubernetes resource to find the security misconfigurations. + platforms: + - selector: + matchLabels: + os: darwin + arch: amd64 + {{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }} + bin: kopilot + - selector: + matchLabels: + os: darwin + arch: arm64 + {{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }} + bin: kopilot + - selector: + matchLabels: + os: linux + arch: amd64 + {{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_linux_amd64.tar.gz" .TagName }} + bin: kopilot + - selector: + matchLabels: + os: linux + arch: arm64 + {{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_linux_arm64.tar.gz" .TagName }} + bin: kopilot