Skip to content

Commit 4b07589

Browse files
committed
use goreleaser to generate krew manifest
1 parent ae699c9 commit 4b07589

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/plugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
GORELEASER_CURRENT_TAG: ${{ env.GORELEASER_CURRENT_TAG }}
5353

5454
- name: Upload artifacts to release
55-
uses: softprops/[email protected]
55+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
5656
with:
5757
files: |
5858
dist/kubectl-ingress-nginx_*
@@ -63,4 +63,4 @@ jobs:
6363
if: ${{ startsWith(github.ref, 'refs/tags/controller-') }}
6464
uses: rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47
6565
with:
66-
krew_template_file: cmd/plugin/krew.yaml
66+
krew_template_file: dist/krew/ingress-nginx.yaml

.goreleaser.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ archives:
3030
- tar.gz
3131
checksum:
3232
name_template: "kubectl-{{ .ProjectName }}_checksums.txt"
33+
34+
krews:
35+
- skip_upload: true
36+
homepage: "https://kubernetes.github.io/ingress-nginx/kubectl-plugin/"
37+
description: "The official kubectl plugin for ingress-nginx."
38+
short_description: "Interact with ingress-nginx"
39+
url_template: "http://github.com/alexintech/ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}"

0 commit comments

Comments
 (0)