这是indexloc提供的服务,不要输入任何密码
Skip to content

Add Krew release automation #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/krew-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Krew Release

on:
push:
tags:
- 'v*'

jobs:
krew-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Krew Release Bot
uses: krew-release-bot/krew-release-bot@v1
with:
plugin-name: ai
plugin-repo: GoogleCloudPlatform/kubectl-ai
krew-index-repo: kubernetes-sigs/krew-index
manifest-file: krew-plugin.yaml
33 changes: 33 additions & 0 deletions krew-plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: ai
spec:
version: "{{.Version}}"
homepage: "https://github.com/GoogleCloudPlatform/kubectl-ai"
shortDescription: "AI powered kubernetes agent"
description: |
kubectl-ai is an AI powered kubernetes agent that runs in your terminal.
It allows you to interact with your Kubernetes cluster using natural language.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/v{{.Version}}/kubectl-ai_Darwin_x86_64.tar.gz
sha256: "{{.DarwinAmd64SHA256}}"
bin: kubectl-ai
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/v{{.Version}}/kubectl-ai_Linux_x86_64.tar.gz
sha256: "{{.LinuxAmd64SHA256}}"
bin: kubectl-ai
- selector:
matchLabels:
os: windows
arch: amd64
uri: https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/v{{.Version}}/kubectl-ai_Windows_x86_64.zip
sha256: "{{.WindowsAmd64SHA256}}"
bin: kubectl-ai.exe