Skip to content

Commit

Permalink
Update GoReleaser and Krew configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro López (inkel) <[email protected]>
  • Loading branch information
inkel committed Jan 3, 2023
1 parent 2c583c8 commit 984e21a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
project_name: kubectl-nodepools

before:
hooks:
- go mod tidy

builds:
- id: kubectl-nodepools
main: ./
Expand All @@ -16,18 +19,23 @@ builds:
- arm64

archives:
- builds:
- id: kubectl-nodepools
builds:
- kubectl-nodepools
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256

snapshot:
name_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
Expand Down
4 changes: 2 additions & 2 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ spec:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/grafana/kubectl-nodepools/releases/download/{{ .TagName }}/kubectl-nodepools_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
{{addURIAndSha "https://github.com/grafana/kubectl-nodepools/releases/download/{{ .TagName }}/kubectl-nodepools_{{ .TagName }}_windows_amd64.zip" .TagName }}
bin: kubectl-nodepools
- selector:
matchLabels:
os: windows
arch: arm64
{{addURIAndSha "https://github.com/grafana/kubectl-nodepools/releases/download/{{ .TagName }}/kubectl-nodepools_{{ .TagName }}_windows_arm64.tar.gz" .TagName }}
{{addURIAndSha "https://github.com/grafana/kubectl-nodepools/releases/download/{{ .TagName }}/kubectl-nodepools_{{ .TagName }}_windows_arm64.zip" .TagName }}
bin: kubectl-nodepools
shortDescription: A kubectl plugin for listing node pools/groups
description: |
Expand Down

0 comments on commit 984e21a

Please sign in to comment.