-
Notifications
You must be signed in to change notification settings - Fork 11
/
.goreleaser.yml
90 lines (83 loc) · 2.32 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
version: 2
before:
hooks:
- sed -i 's/devel/{{ .Tag }}/' ./pkg/version.json
builds:
- main: .
binary: opc
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- s390x
- "386"
- mips64le
- ppc64le
archives:
- name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
{{- if .Mips }}_{{ .Mips }}{{ end -}}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: opc
repository:
owner: openshift-pipelines
name: opc
directory: Formula
homepage: "https://github.com/openshift-pipelines/opc"
description: "A CLI for OpenShift Pipeline"
install: |
bin.install "opc" => "opc"
output = Utils.popen_read("SHELL=bash #{bin}/opc completion bash")
(bash_completion/"opc").write output
output = Utils.popen_read("SHELL=zsh #{bin}/opc completion zsh")
(zsh_completion/"_opc").write output
prefix.install_metafiles
aurs:
- homepage: "https://docs.openshift.com/container-platform/latest/cicd/pipelines/understanding-openshift-pipelines.html"
provides:
- openshift-pipelines-client
description: "A CLI for OpenShift Pipeline"
maintainers:
- "Openshift Pipelines <[email protected]>"
license: Apache 2.0
private_key: "{{ .Env.AUR_PRIVATE_KEY }}"
git_url: ssh://[email protected]/opc-bin.git
package: |-
# bin
install -Dm755 "./opc" "${pkgdir}/usr/bin/opc"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/opc/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
./opc completion zsh > opc.zsh
./opc completion bash > opc.bash
install -Dm644 "opc.bash" "${pkgdir}/usr/share/bash-completion/completions/opc"
install -Dm644 "opc.zsh" "${pkgdir}/usr/share/zsh/site-functions/_opc"