Skip to content

Commit 1ebb2a4

Browse files
authored
Merge pull request #14 from nginxinc/areste
chore: add krew-release-bot for automating PRs to krew-index
2 parents e4d7044 + 37bfc2e commit 1ebb2a4

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/release-builder.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ jobs:
4646
env:
4747
GITHUB_TOKEN: ${{ github.token }}
4848
with:
49-
asset_paths: '["./release/*.gz"]'
49+
asset_paths: '["./release/*.gz"]'
50+
51+
- name: Update new version in krew-index
52+
uses: rajatjindal/krew-release-bot@v0.0.46

.krew.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
2+
kind: Plugin
3+
metadata:
4+
name: nginx-supportpkg
5+
spec:
6+
version: {{ .TagName }}
7+
platforms:
8+
- selector:
9+
matchLabels:
10+
os: linux
11+
arch: arm64
12+
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
13+
bin: kubectl-nginx_supportpkg
14+
- selector:
15+
matchLabels:
16+
os: linux
17+
arch: amd64
18+
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
19+
bin: kubectl-nginx_supportpkg
20+
- selector:
21+
matchLabels:
22+
os: darwin
23+
arch: arm64
24+
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_darwin_arm64.tar.gz" .TagName}}
25+
bin: kubectl-nginx_supportpkg
26+
- selector:
27+
matchLabels:
28+
os: darwin
29+
arch: amd64
30+
{{addURIAndSha "https://github.com/nginxinc/nginx-supportpkg-for-k8s/releases/download/{{ .TagName }}/kubectl-nginx_supportpkg_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
31+
bin: kubectl-nginx_supportpkg
32+
shortDescription: Collect support packages for NGINX products that run on k8s
33+
homepage: https://github.com/nginxinc/nginx-supportpkg-for-k8s
34+
description: |
35+
Provides a single command to collect troubleshooting information
36+
for all NGINX products that run on k8s.

0 commit comments

Comments
 (0)