Skip to content

Commit

Permalink
Update goreleaser to build kpexec as a kubectl plugin (kubectl-pexec)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssup2 committed Mar 23, 2021
1 parent c3deca6 commit 4b7f429
Showing 1 changed file with 47 additions and 17 deletions.
64 changes: 47 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,61 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
- go mod download
builds:
- main: ./cmd/kpexec/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -X github.com/ssup2/kpexec/pkg/cmd/kpexec.version={{ .Tag }}
- id: kpexec
main: ./cmd/kpexec/main.go
binary: kpexec
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -X github.com/ssup2/kpexec/pkg/cmd/kpexec.version={{ .Tag }}
- id: kubectl-pexec
main: ./cmd/kpexec/main.go
binary: kubectl-pexec
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -X github.com/ssup2/kpexec/pkg/cmd/kpexec.version={{ .Tag }}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
- id: kpexec
builds:
- kpexec
name_template: "kpexec_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
- id: kubectl-pexec
builds:
- kubectl-pexec
name_template: "kubectl_pexec_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
checksum:
name_template: checksums.txt
changelog:
sort: asc
brews:
- name: kpexec
ids:
- kpexec
tap:
owner: ssup2
name: homebrew-tap
Expand Down

0 comments on commit 4b7f429

Please sign in to comment.