Skip to content

Commit 57f6af2

Browse files
committed
Add kubectl shp for release
Change prefix cli to shp for release Signed-off-by: Lan Liang <[email protected]>
1 parent 25c01f7 commit 57f6af2

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

.goreleaser.yml

+36-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
project_name: shp
12
before:
23
hooks:
34
- go generate ./...
@@ -17,10 +18,42 @@ builds:
1718
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}}
1819
main: ./cmd/shp/main.go
1920
binary: shp
21+
id: shp
22+
- env:
23+
- CGO_ENABLED=0
24+
goos:
25+
- linux
26+
- darwin
27+
- windows
28+
goarch:
29+
- amd64
30+
- arm64
31+
flags:
32+
- -trimpath
33+
ldflags:
34+
- -s -w -extldflags "-static" -X github.com/shipwright-io/cli/pkg/shp/cmd/version.version={{.Version}}
35+
main: ./cmd/shp/main.go
36+
binary: kubectl-shp
37+
id: kubectl-shp
2038
archives:
21-
- replacements:
22-
darwin: macOS
23-
amd64: x86_64
39+
- id: "shp"
40+
name_template: >-
41+
{{ .ProjectName }}_{{ .Tag }}_
42+
{{- if eq .Os "darwin" }}macOS_
43+
{{- else }}{{ .Os }}_{{ end }}
44+
{{- if eq .Arch "amd64" }}x86_64
45+
{{- else }}{{ .Arch }}{{ end }}
46+
builds:
47+
- shp
48+
- id: "kubectl-shp"
49+
name_template: >-
50+
kubectl-{{ .ProjectName }}_{{ .Tag }}_
51+
{{- if eq .Os "darwin" }}macOS_
52+
{{- else }}{{ .Os }}_{{ end }}
53+
{{- if eq .Arch "amd64" }}x86_64
54+
{{- else }}{{ .Arch }}{{ end }}
55+
builds:
56+
- kubectl-shp
2457
checksum:
2558
name_template: 'checksums.txt'
2659
snapshot:

0 commit comments

Comments
 (0)