-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
154 lines (133 loc) · 4.92 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- binary: kubectl-cred
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
ldflags:
- -s -w
ignore:
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- LICENSE
- README.md
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: gjbae1212
name: kubectl-cred
brews:
- name: kubectl-cred
tap:
owner: gjbae1212
name: homebrew-kubectl-cred
commit_author:
name: gjbae1212
email: gjbae1212@gmail.com
description: "kubectl-cred is a kubernetes plugin to which switch to contexts using an interactive CLI."
install: |
bin.install "kubectl-cred"
krews:
-
# Name template of the recipe
# Default to project name
name: cred
# IDs of the archives to use.
# Defaults to all.
# ids:
# GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Krew plugin supports at this moment only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
goarm: 6
# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
# same kind. We will probably unify this in the next major version like it is done with scoop.
# GitHub/GitLab repository to push the Krew plugin to
# Gitea is not supported yet, but the support coming
index:
owner: gjbae1212
name: kubectl-cred
# Optionally a branch can be provided.
# Defaults to the default repository branch.
branch: main
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.GITHUB_TOKEN }}"
# Template for the url which is determined by the given Token (github or gitlab)
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
url_template: "https://github.com/gjbae1212/kubectl-cred/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: goreleaser@carlosbecker.com
# The project name and current git tag are used in the format string.
commit_msg_template: "Krew plugin update for {{ .ProjectName }} version {{ .Tag }}"
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/gjbae1212/kubectl-cred"
# Template of your app's description.
# The usual guideline for this is to wrap the line at 80 chars.
#
# Default is empty.
description: |
kubectl-cred is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI.
# Switch context using an interactive CLI.
kubectl cred ctx
# Switch namespace using an interactive CLI.
kubectl cred ns
# Show your all of contexts information formatted tree.
kubectl cred ls
# Show your current context information.
kubectl cred current
# Rename context name in k8s config, using an interactive CLI.
kubectl cred rename
# Delete context in k8s config, using an interactive CLI.
kubectl cred delete
# Template of your app's short description.
# The usual guideline for this is to be at most 50 chars long.
#
# Default is empty.
short_description: "kubectl-cred is a kubernetes plugin to which switch to contexts and namespaces and clusters using an interactive CLI."
# Caveats for the user of your binary.
# The usual guideline for this is to wrap the line at 80 chars.
#
# Default is empty.
caveats:
# Setting this will prevent goreleaser to actually try to commit the updated
# krew plugin - instead, the plugin file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the Krew plugin
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false