Reimplement kubectl plugin release workflow (#8812)
* Feat: reimplement kubectl plugin release system This commit does the following changes: - Add GitHub Actions pipeline for releasing the plugin - Removes the build/build-plugin.sh and replaces this with GoReleaser - Adds the use of krew-release-bot for automatically updating the krew release - Removes the make target for build/build-plugin.sh Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com> * Fix: pin github actions stages with commit sha Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com> Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
This commit is contained in:
parent
c85765a015
commit
1dc9d98833
6 changed files with 107 additions and 147 deletions
29
.goreleaser.yaml
Normal file
29
.goreleaser.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
project_name: ingress-nginx
|
||||
release:
|
||||
github:
|
||||
owner: kubernetes
|
||||
name: ingress-nginx
|
||||
builds:
|
||||
- id: ingress-nginx
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- arm64
|
||||
- amd64
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
- GO111MODULE=on
|
||||
main: cmd/plugin/main.go
|
||||
binary: kubectl-ingress-nginx
|
||||
ldflags: |
|
||||
-s -w
|
||||
-X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }}
|
||||
-X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }}
|
||||
archives:
|
||||
- id: ingress-nginx
|
||||
builds:
|
||||
- ingress-nginx
|
||||
name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
|
||||
format: tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue