Skip to content

Commit

Permalink
Add kubectl shp for release
Browse files Browse the repository at this point in the history
Change prefix cli to shp for release

Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng committed May 17, 2023
1 parent 25c01f7 commit b496548
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
project_name: shp
before:
hooks:
- go generate ./...
builds:
- env:
- id: shp
env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -17,10 +19,41 @@ builds:
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}}
main: ./cmd/shp/main.go
binary: shp
- id: kubectl-shp
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}}
main: ./cmd/shp/main.go
binary: kubectl-shp
archives:
- replacements:
darwin: macOS
amd64: x86_64
- id: "shp"
name_template: >-
{{ .ProjectName }}_{{ .Tag }}_
{{- if eq .Os "darwin" }}macOS_
{{- else }}{{ .Os }}_{{ end }}
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
builds:
- shp
- id: "kubectl-shp"
name_template: >-
kubectl-{{ .ProjectName }}_{{ .Tag }}_
{{- if eq .Os "darwin" }}macOS_
{{- else }}{{ .Os }}_{{ end }}
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
builds:
- kubectl-shp
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit b496548

Please sign in to comment.