Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubectl shp for release #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading