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 Apr 14, 2023
1 parent 25c01f7 commit 57f6af2
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
project_name: shp
before:
hooks:
- go generate ./...
Expand All @@ -17,10 +18,42 @@ 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: 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
id: 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 57f6af2

Please sign in to comment.