forked from ahmetb/kubectx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
74 lines (68 loc) · 1.59 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
project_name: tkgi-kubectx
before:
hooks:
- rm -rf dist
- go mod download
builds:
- id: tkgi-kubectx
main: ./cmd/tkgi-kubectx
binary: tkgi-kubectx
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
- ppc64le
- s390x
goarm: [6, 7]
archives:
- id: tkgi-kubectx-archive
name_template: |-
{{ .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
format_overrides:
- goos: windows
format: zip
files: ["LICENSE"]
release:
prerelease: auto
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
brews:
- name: tkgi-kubectx
tap:
owner: jakuboskera
name: homebrew-tap
skip_upload: auto
homepage: https://github.com/jakuboskera/tkgi-kubectx
url_template: "https://github.com/jakuboskera/tkgi-kubectx/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
folder: Formula
description: "Faster way to switch between clusters and namespaces in kubectl with support of tkgi login before switch"
install: |
bin.install "tkgi-kubectx"
test: |
system "#{bin}/tkgi-kubectx --version"
scoop:
bucket:
owner: jakuboskera
name: scoop-bucket
description: "Faster way to switch between clusters and namespaces in kubectl with support of tkgi login before switch"
license: "Apache 2"