Skip to content

chore: add krew-release-bot for automating PRs to krew-index #14

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

Merged
merged 1 commit into from
Jul 1, 2024
Merged
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
5 changes: 4 additions & 1 deletion .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./release/*.gz"]'
asset_paths: '["./release/*.gz"]'

- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.46
36 changes: 36 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: nginx-supportpkg
spec:
version: {{ .TagName }}
platforms:
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
bin: kubectl-nginx_supportpkg
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: kubectl-nginx_supportpkg
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_darwin_arm64.tar.gz" .TagName}}
bin: kubectl-nginx_supportpkg
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: kubectl-nginx_supportpkg
shortDescription: Collect support packages for NGINX products that run on k8s
homepage: https://github.com/nginxinc/nginx-supportpkg-for-k8s
description: |
Provides a single command to collect troubleshooting information
for all NGINX products that run on k8s.