-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
283 lines (264 loc) · 7.65 KB
/
Copy path.goreleaser.yaml
File metadata and controls
283 lines (264 loc) · 7.65 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- ./scripts/completion.sh
builds:
- env:
- CGO_ENABLED=0
binary: shopware-cli
ldflags: -s -w -X 'github.com/shopware/shopware-cli/cmd.version={{ .Version }}'
flags:
- -trimpath
goos:
- linux
- darwin
ignore:
- goos: linux
goarch: '386'
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- completions/*
release:
github:
owner: shopware
name: shopware-cli
prerelease: auto
dockers_v2:
- id: php-85
images:
- "shopware/shopware-cli"
- "ghcr.io/shopware/shopware-cli"
tags:
- "{{ .Version }}-php-8.5"
- '{{ if not .Prerelease }}latest-php-8.5{{ end }}'
build_args:
PHP_VERSION: "8.5"
platforms:
- "linux/amd64"
- "linux/arm64"
- id: php-84
images:
- "shopware/shopware-cli"
- "ghcr.io/shopware/shopware-cli"
tags:
- "{{ .Version }}-php-8.4"
- '{{ if not .Prerelease }}latest-php-8.4{{ end }}'
build_args:
PHP_VERSION: "8.4"
platforms:
- "linux/amd64"
- "linux/arm64"
- id: php-83
images:
- "shopware/shopware-cli"
- "ghcr.io/shopware/shopware-cli"
tags:
- "{{ .Version }}-php-8.3"
- '{{ if not .Prerelease }}latest-php-8.3{{ end }}'
- "{{ .Version }}"
- '{{ if not .Prerelease }}latest{{ end }}'
build_args:
PHP_VERSION: "8.3"
platforms:
- "linux/amd64"
- "linux/arm64"
- id: php-82
images:
- "shopware/shopware-cli"
- "ghcr.io/shopware/shopware-cli"
tags:
- "{{ .Version }}-php-8.2"
- '{{ if not .Prerelease }}latest-php-8.2{{ end }}'
build_args:
PHP_VERSION: "8.2"
platforms:
- "linux/amd64"
- "linux/arm64"
- id: bin
images:
- "shopware/shopware-cli"
- "ghcr.io/shopware/shopware-cli"
dockerfile: Dockerfile.bin
tags:
- "bin-{{ .Version }}"
- '{{ if not .Prerelease }}bin{{ end }}'
platforms:
- "linux/amd64"
- "linux/arm64"
sboms:
- artifacts: archive
- id: source
artifacts: source
signs:
- cmd: cosign
signature: "${artifact}.sigstore.json"
env:
- COSIGN_EXPERIMENTAL=1
artifacts: checksum
args:
- "sign-blob"
- "--bundle=${signature}"
- '${artifact}'
- "--yes"
docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: all
args:
- 'sign'
- '${artifact}'
- "--yes"
checksum:
name_template: 'checksums.txt'
docker_digest:
name_template: 'digests.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^Merge pull request:'
groups:
- title: 🚀 Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "🐛 Bug Fixes"
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: 🧰 Maintenance
order: 999
aurs:
- homepage: https://developer.shopware.com/
description: A cli which contains handy helpful commands for daily Shopware tasks
license: MIT
disable: '{{ if .Prerelease }}true{{ end }}'
maintainers:
- "Soner Sayakci <s.sayakci@shopware.com>"
- "Max <max@swk-web.com>"
private_key: '{{ .Env.AUR_KEY }}'
commit_author:
name: "Shopware Bot"
email: github@shopware.com
git_url: 'ssh://aur@aur.archlinux.org/shopware-cli-bin.git'
depends:
- "git"
package: |-
install -Dm755 "./shopware-cli" "${pkgdir}/usr/bin/shopware-cli"
ln -sf "shopware-cli" "${pkgdir}/usr/bin/swx"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/shopware-cli/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/shopware-cli.bash" "${pkgdir}/usr/share/bash-completion/completions/shopware-cli"
install -Dm644 "./completions/shopware-cli.zsh" "${pkgdir}/usr/share/zsh/site-functions/_shopware-cli"
install -Dm644 "./completions/shopware-cli.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/shopware-cli.fish"
nix:
- name: shopware-cli
skip_upload: auto
repository:
owner: FriendsOfShopware
name: nur-packages
branch: main
token: "{{ .Env.NUR_GITHUB_TOKEN }}"
commit_author:
name: "Shopware Bot"
email: github@shopware.com
post_install: |
ln -sf "$out/bin/shopware-cli" "$out/bin/swx"
installShellCompletion --cmd shopware-cli \
--bash <($out/bin/shopware-cli completion bash) \
--zsh <($out/bin/shopware-cli completion zsh) \
--fish <($out/bin/shopware-cli completion fish)
homepage: "https://sw-cli.fos.gg"
description: "Command line tool for Shopware 6"
license: "mit"
nfpms:
-
package_name: shopware-cli
vendor: "shopware AG"
homepage: https://github.com/shopware/shopware-cli/
maintainer: Soner Sayakci <s.sayakci@shopware.com>
description: A cli which contains handy helpful commands for daily Shopware tasks
license: MIT
contents:
- src: /usr/bin/shopware-cli
dst: /usr/bin/swx
type: symlink
- src: ./completions/shopware-cli.bash
dst: /etc/bash_completion.d/shopware-cli
- src: ./completions/shopware-cli.fish
dst: /usr/share/fish/completions/shopware-cli.fish
- src: ./completions/shopware-cli.zsh
dst: /usr/local/share/zsh/site-functions/_shopware-cli
formats:
- apk
- deb
- rpm
homebrew_casks:
- name: shopware-cli
skip_upload: auto
repository:
owner: shopware
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN_SHOPWARE }}"
commit_author:
name: Frosh Automation
email: ci@fos.gg
homepage: https://shopware.com
description: Shopware CLI helps Shopware developers manage extensions
license: MIT
hooks:
post:
install: |
system_command "/bin/ln", args: ["-sf", "#{HOMEBREW_PREFIX}/bin/shopware-cli", "#{HOMEBREW_PREFIX}/bin/swx"]
uninstall: |
system_command "/bin/rm", args: ["-f", "#{HOMEBREW_PREFIX}/bin/swx"]
completions:
bash: completions/shopware-cli.bash
zsh: completions/shopware-cli.zsh
fish: completions/shopware-cli.fish
npms:
- name: "@shopware-ag/shopware-cli"
description: "Shopware CLI helps Shopware developers manage extensions"
license: MIT
homepage: https://developer.shopware.com/docs/products/cli/
keywords:
- cli
- shopware
repository: https://github.com/shopware/shopware-cli
bugs: https://github.com/shopware/shopware-cli/issues
access: public
tag: '{{ if .Prerelease }}prerelease{{ else }}latest{{ end }}'
cloudsmiths:
- organization: friendsofshopware
repository: stable
secret_name: CLOUDSMITH_API_KEY
disable: '{{ if .Prerelease }}true{{ end }}'
distributions:
deb: "any-distro/any-version"
rpm: "any-distro/any-version"
alpine: "alpine/any-version"
notarize:
macos:
- enabled: '{{ isEnvSet "APPLE_CODE_SIGNING_KEY" }}'
sign:
certificate: "{{.Env.APPLE_CODE_SIGNING_KEY}}"
password: "{{.Env.APPLE_CODE_SIGNING_KEY_PASSWORD}}"
notarize:
issuer_id: "{{.Env.APPLE_APP_STORE_CONNECT_ISSUER}}"
key_id: "{{.Env.APPLE_APP_STORE_CONNECT_KEY_ID}}"
key: "{{.Env.APPLE_APP_STORE_CONNECT_KEY}}"