-
Notifications
You must be signed in to change notification settings - Fork 251
/
.goreleaser.yml
85 lines (85 loc) · 2.18 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 2
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/tkn
binary: tkn
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- s390x
- ppc64le
ldflags:
- -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}}
archives:
- name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
release:
prerelease: "true"
brews:
- name: tektoncd-cli
repository:
owner: tektoncd
name: homebrew-tools
directory: Formula
homepage: "https://github.com/tektoncd/cli"
description: Tekton CLI - The command line interface for interacting with Tekton
test: |
system "#{bin}/tkn", "version"
install: |
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
nfpms:
- file_name_template: >-
tektoncd-cli-
{{- .Version }}_
{{- title .Os }}-
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else }}{{ .Arch }}{{ end }}
homepage: https://github.com/tektoncd/cli/
description: A command line interface for interacting with Tekton
maintainer: Tekton Developers <[email protected]>
license: Apache 2.0
vendor: Tekton Developers
formats:
- deb
- rpm
bindir: /usr/bin
universal_binaries:
- replace: true
name_template: 'tkn'