Skip to content

Commit

Permalink
Merge pull request #3 from jakuboskera/ci-fix-goreleaser-config
Browse files Browse the repository at this point in the history
ci: fix goreleaser config
  • Loading branch information
jakuboskera authored Dec 19, 2023
2 parents ffb21b4 + 8faa1ed commit 73cbdb9
Showing 1 changed file with 19 additions and 27 deletions.
46 changes: 19 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,37 @@ builds:
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- linux
- darwin
- windows
goarch:
- amd64
- "386"
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: "arm"
- goos: windows
goarch: "arm64"
- goos: linux
goarch: arm
goarm: 6
- amd64
- arm
- arm64
- ppc64le
- s390x
goarm: [6, 7]

archives:
- id: tkgi-kubectx-archive
name_template: |-
{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch -}}
{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_
{{- with .Arch -}}
{{- if (eq . "386") -}}i386
{{- else if (eq . "amd64") -}}x86_64
{{- else -}}{{- . -}}
{{- end -}}
{{ end }}
{{- with .Arm -}}
{{- if (eq . "6") -}}hf
{{- else -}}v{{- . -}}
{{- end -}}
{{- end -}}
builds:
- tkgi-kubectx
replacements:
386: i386
amd64: x86_64
- tkgi-kubectx
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
files: ["LICENSE"]

release:
Expand Down

0 comments on commit 73cbdb9

Please sign in to comment.