mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-04-27 11:11:31 +00:00
ci: release to krew index as kubectl-gpt (#1100)
Signed-off-by: Miguel Varela Ramos <miguel@cohere.ai> Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
parent
593139cffb
commit
4d76e9c5ae
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -59,6 +59,8 @@ jobs:
|
|||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.K8SGPT_BOT_SECRET }}
|
GITHUB_TOKEN: ${{ secrets.K8SGPT_BOT_SECRET }}
|
||||||
|
- name: Update new version in krew-index
|
||||||
|
uses: rajatjindal/krew-release-bot@df3eb197549e3568be8b4767eec31c5e8e8e6ad8 # v0.0.46
|
||||||
|
|
||||||
build-container:
|
build-container:
|
||||||
if: needs.release-please.outputs.releases_created == 'true'
|
if: needs.release-please.outputs.releases_created == 'true'
|
||||||
|
110
.krew.yaml
Normal file
110
.krew.yaml
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||||
|
kind: Plugin
|
||||||
|
metadata:
|
||||||
|
name: gpt
|
||||||
|
spec:
|
||||||
|
version: {{ .TagName }}
|
||||||
|
homepage: https://github.com/k8sgpt-ai/k8sgpt
|
||||||
|
shortDescription: "Giving Kubernetes Superpowers to everyone"
|
||||||
|
description: |
|
||||||
|
A tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English.
|
||||||
|
platforms:
|
||||||
|
##########
|
||||||
|
# Darwin #
|
||||||
|
##########
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: amd64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Darwin_x86_64.tar.gz" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: arm64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Darwin_arm64.tar.gz" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
|
||||||
|
#########
|
||||||
|
# Linux #
|
||||||
|
#########
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Linux_x86_64.tar.gz" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Linux_arm64.tar.gz" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: linux
|
||||||
|
arch: "386"
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Linux_i386.tar.gz" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
|
||||||
|
###########
|
||||||
|
# Windows #
|
||||||
|
###########
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: windows
|
||||||
|
arch: amd64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Windows_x86_64.zip" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: windows
|
||||||
|
arch: arm64
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Windows_arm64.zip" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: windows
|
||||||
|
arch: "386"
|
||||||
|
{{addURIAndSha "https://github.com/k8sgpt-ai/k8sgpt/releases/download/{{ .TagName }}/k8sgpt_Windows_i386.zip" .TagName | indent 6 }}
|
||||||
|
files:
|
||||||
|
- from: "k8sgpt"
|
||||||
|
to: "kubectl-gpt"
|
||||||
|
- from: "LICENSE"
|
||||||
|
to: "."
|
||||||
|
bin: kubectl-gpt
|
Loading…
Reference in New Issue
Block a user