-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
.goreleaser.yml
87 lines (87 loc) · 2.25 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
75
76
77
78
79
80
81
82
83
84
85
86
87
version: 2
builds:
- env:
- CGO_ENABLED=0
ldflags: -s -X github.com/sunny0826/kubecm/version.Version={{.Version}}
goos:
- linux
- darwin
- windows
ignore:
- goos: windows
goarch: arm64
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}"
changelog:
sort: asc
use: github
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Docs
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Test
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Dependabot
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
order: 4
- title: Others
order: 999
release:
github:
owner: sunny0826
name: kubecm
name_template: '{{.ProjectName}}-v{{.Version}}'
#brews:
# - name: kubecm
# tap:
# owner: sunny0826
# name: homebrew-tap
# token: "{{ .Env.HOMEBREW_TOKEN }}"
#
# url_template: "https://github.com/sunny0826/kubecm/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# # Git author used to commit to the repository.
# # Defaults are shown.
# commit_author:
# name: goreleaserbot
# email: goreleaser@carlosbecker.com
# homepage: "https://github.com/sunny0826/kubecm"
# description: "Merge multiple kubeconfig"
#
# # Packages your package depends on.
# dependencies:
# - name: git
#
# # So you can `brew test` your formula.
# # Default is empty.
# test: |
# system "#{bin}/kubecm version"
#
# # Custom install script for brew.
# # Default is 'bin.install "program"'.
# install: |
# bin.install "kubecm"
#
# # Install bash completion
# output = Utils.safe_popen_read("#{bin}/kubecm", "completion", "bash")
# (bash_completion/"kubecm").write output
#
# # Install zsh completion
# output = Utils.safe_popen_read("#{bin}/kubecm", "completion", "zsh")
# (zsh_completion/"_kubecm").write output