-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy path.goreleaser.yml
More file actions
167 lines (148 loc) · 5.33 KB
/
.goreleaser.yml
File metadata and controls
167 lines (148 loc) · 5.33 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
before:
hooks:
- /bin/sh -c "env TARGET_BRANCH={{.Tag }} PAC_VERSION={{.Tag }} TARGET_OPENSHIFT=true ./hack/generate-releaseyaml.sh > release.yaml"
- /bin/sh -c "env TARGET_BRANCH={{.Tag }} PAC_VERSION={{.Tag }} ./hack/generate-releaseyaml.sh > release.k8s.yaml"
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/tkn-pac
binary: tkn-pac
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- s390x
- ppc64le
ldflags:
- -w
- -s
- -X github.com/openshift-pipelines/pipelines-as-code/pkg/params/version.Version={{.Version}}
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 }}
format_overrides:
- goos: windows
formats: ["zip"]
- goos: darwin
formats: ["zip"]
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-next"
release:
extra_files:
- glob: ./release.yaml
- glob: ./release.k8s.yaml
prerelease: true
header: |
# Pipelines as Code version {{.Tag}}
OpenShift Pipelines as Code {{.Tag }} has been released 🥳
TODO: XXXXX add high level changelog before setting this as released XXXXX,
describe the large features with some nice screenshot/demo if possible with doc links and pr links, if bugfixes just mention the notable bugfixes, see older releases for some example
## Installation
To install this version you can install the release.yaml with [`kubectl`](https://kubernetes.io/docs/tasks/tools/#kubectl) for your platform :
### Openshift
```shell
kubectl apply -f https://github.com/tektoncd/pipelines-as-code/releases/download/{{.Tag}}/release.yaml
```
### Kubernetes
```shell
kubectl apply -f https://github.com/tektoncd/pipelines-as-code/releases/download/{{.Tag}}/release.k8s.yaml
```
### Documentation
The documentation for this release is available here :
https://docs.pipelinesascode.com/{{ .Tag }}
homebrew_casks:
- name: tektoncd-pac
repository:
owner: openshift-pipelines
name: homebrew-pipelines-as-code
dependencies:
- formula: tektoncd-cli
- formula: git
homepage: "https://pipelinesascode.com"
description: tkn-pac - A command line interface for interacting with Pipelines as Code
binaries: ["tkn-pac"]
custom_block: |
zsh_completion = "#{staged_path}/_tkn-pac"
bash_completion = "#{staged_path}/tkn-pac.bash"
fish_completion = "#{staged_path}/tkn-pac.fish"
preflight do
stdout, * = system_command "#{staged_path}/tkn-pac", args: ["completion", "bash"]
File.write bash_completion, stdout
stdout, * = system_command "#{staged_path}/tkn-pac", args: ["completion", "zsh"]
File.write zsh_completion, stdout
stdout, * = system_command "#{staged_path}/tkn-pac", args: ["completion", "fish"]
File.write fish_completion, stdout
end
binary zsh_completion, target: "#{HOMEBREW_PREFIX}/share/zsh/site-functions/_tkn-pac"
binary bash_completion, target: "#{HOMEBREW_PREFIX}/etc/bash_completion.d/tkn-pac"
binary fish_completion, target: "#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d/tkn-pac.fish"
nfpms:
- file_name_template: >-
tkn-pac-
{{- .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 }}
homepage: https://pipelinesascode.com
description: A command line interface to OpenShift Pipelines as Code
maintainer: OpenShift Pipelines Developers <pipelines-dev@redhat.com>
license: Apache 2.0
vendor: Red Hat
formats:
- deb
- rpm
bindir: /usr/bin
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch
- go mod tidy
aurs:
- name: tkn-pac
homepage: "https://pipelinesascode.com"
skip_upload: true
description: tkn-pac - A command line interface for interacting with Pipelines as Code
maintainers:
- "Chmouel Boudjnah <chmouel@chmouel.com>"
license: Apache 2.0
private_key: "{{ .Env.AUR_PRIVATE_KEY }}"
git_url: ssh://aur@aur.archlinux.org/tkn-pac.git
package: |-
# bin
install -Dm755 "./tkn-pac" "${pkgdir}/usr/bin/tkn-pac"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/tkn-pac/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
./tkn-pac completion zsh > tkn-pac.zsh
./tkn-pac completion bash > tkn-pac.bash
install -Dm644 "tkn-pac.bash" "${pkgdir}/usr/share/bash-completion/completions/tkn-pac"
install -Dm644 "tkn-pac.zsh" "${pkgdir}/usr/share/zsh/site-functions/_tkn-pac"
universal_binaries:
- replace: true
name_template: "tkn-pac"