Skip to content

Commit

Permalink
Merge pull request #14 from nginxinc/areste
Browse files Browse the repository at this point in the history
chore: add krew-release-bot for automating PRs to krew-index
  • Loading branch information
mrajagopal authored Jul 1, 2024
2 parents e4d7044 + 37bfc2e commit 1ebb2a4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
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/[email protected]
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.

0 comments on commit 1ebb2a4

Please sign in to comment.