-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
337 lines (302 loc) · 9.65 KB
/
.goreleaser.yaml
File metadata and controls
337 lines (302 loc) · 9.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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
# GoReleaser configuration for bsubio CLI
# Documentation: https://goreleaser.com
version: 2
before:
hooks:
# Ensure dependencies are up to date
- go mod tidy
builds:
- id: bsubio
main: ./cmd/bsubio
binary: bsubio
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
# Ensure static binaries
flags:
- -trimpath
archives:
- id: default
formats: [tar.gz]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
formats: [zip]
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}.sha256"
algorithm: sha256
nfpms:
- id: default
package_name: bsubio
vendor: bsubio
homepage: https://www.bsub.io
maintainer: bsub.io <contact@bsub.io>
description: CLI for easy running heavy duty compute jobs in the cloud
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
aurs:
- name: bsubio-bin
homepage: https://www.bsub.io
description: CLI for easy running heavy duty compute jobs in the cloud
maintainers:
- "bsub.io <contact@bsub.io>"
license: MIT
private_key: "{{ .Env.AUR_SSH_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/bsubio-bin.git"
skip_upload: false
package: |-
# binary package
install -Dm755 "./bsubio" "${pkgdir}/usr/bin/bsubio"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/bsubio/LICENSE"
commit_author:
name: bsub.io
email: contact@bsub.io
changelog:
disable: false
use: git
sort: asc
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug Fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Other Changes
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- Merge pull request
- Merge branch
release:
github:
owner: bsubio
name: cli
draft: false
prerelease: auto
mode: replace
disable: false
header: |
## bsubio CLI {{ .Tag }}
Download the appropriate binary for your platform below.
footer: |
---
### Installation
#### Debian/Ubuntu (.deb)
```bash
# Download the .deb package for your architecture (amd64 or arm64)
ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
wget https://github.com/bsubio/cli/releases/download/{{ .Tag }}/{{ .ProjectName }}_{{ .Version }}_linux_${ARCH}.deb
sudo dpkg -i {{ .ProjectName }}_{{ .Version }}_linux_${ARCH}.deb
```
#### RHEL/CentOS/Fedora (.rpm)
```bash
# Download the .rpm package for your architecture (amd64 or arm64)
ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
wget https://github.com/bsubio/cli/releases/download/{{ .Tag }}/{{ .ProjectName }}_{{ .Version }}_linux_${ARCH}.rpm
sudo rpm -i {{ .ProjectName }}_{{ .Version }}_linux_${ARCH}.rpm
```
#### Arch Linux (AUR)
```bash
# Using yay
yay -S bsubio-bin
# Or using paru
paru -S bsubio-bin
```
#### macOS (Homebrew)
```bash
brew install bsubio/tap/bsubio
```
#### Windows (winget)
```powershell
winget install bsubio.bsubio
```
#### Windows (Chocolatey)
```powershell
choco install bsubio
```
#### Docker
```bash
docker pull ghcr.io/bsubio/cli:latest
docker run ghcr.io/bsubio/cli:latest version
# With API key and file mounting
docker run -e BSUBIO_API_KEY=$BSUBIO_API_KEY \
-v $(pwd):/data \
ghcr.io/bsubio/cli:latest submit pdf/extract /data/input.pdf
```
#### Quick Install (Recommended)
```bash
curl -fsSL https://www.bsub.io/install.sh | sh
```
#### Manual Installation
1. Download the binary for your platform
2. Download the checksums file: `{{ .ProjectName }}_{{ .Version }}.sha256`
3. Verify the checksum: `sha256sum -c {{ .ProjectName }}_{{ .Version }}.sha256`
4. Make it executable: `chmod +x bsubio-*`
5. Move to PATH: `sudo mv bsubio-* /usr/local/bin/bsubio`
### Documentation
- [GitHub Repository](https://github.com/bsubio/cli)
- [Documentation](https://docs.bsub.io)
name_template: "{{.Tag}}"
chocolateys:
- name: bsubio
ids:
- default
title: bsubio CLI
authors: bsubio
project_url: https://bsub.io
url_template: "https://github.com/bsubio/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
icon_url: https://bsub.io/favicon.ico
copyright: 2025 bsubio
license_url: https://github.com/bsubio/cli/blob/main/LICENSE
require_license_acceptance: false
project_source_url: https://github.com/bsubio/cli
docs_url: https://app.bsub.io/static/docs/
bug_tracker_url: https://github.com/bsubio/cli/issues
tags: "cli batch-jobs job-scheduler cloud devops"
summary: CLI for easy running heavy duty compute jobs in the cloud
description: |
bsubio CLI is a command-line tool for running heavy duty batch compute jobs and workflows on the bsubio cloud platform.
Features:
- Submit and manage CPU/GPU batch jobs
- Monitor job status and logs
- Manage job types and configurations
- Upload and manage job artifacts
For more information, visit https://www.bsub.io
release_notes: "https://github.com/bsubio/cli/releases/tag/{{ .Tag }}"
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
source_repo: "https://push.chocolatey.org/"
skip_publish: false
winget:
- name: bsubio
publisher: bsubio
short_description: CLI for easy running heavy duty compute jobs in the cloud
license: MIT
homepage: https://www.bsub.io
publisher_url: https://www.bsub.io
publisher_support_url: https://github.com/bsubio/cli/issues
package_identifier: bsubio.bsubio
repository:
owner: microsoft
name: winget-pkgs
branch: master
token: "{{ .Env.WINGET_GITHUB_TOKEN }}"
pull_request:
enabled: true
draft: false
commit_author:
name: bsub.io
email: contact@bsub.io
url_template: "https://github.com/bsubio/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Temporarily disabled - winget requires manual first submission to microsoft/winget-pkgs
# After first manual PR is merged, change this to: skip_upload: '{{ not (env "WINGET_GITHUB_TOKEN") }}'
skip_upload: true
release_notes: "{{ .Changelog }}"
tags:
- cli
- batch-jobs
- job-scheduler
- cloud
- devops
dockers:
- image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-amd64"
dockerfile: Dockerfile
use: buildx
goos: linux
goarch: amd64
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=bsubio"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/bsubio/cli"
- "--label=org.opencontainers.image.description=CLI for easy running heavy duty compute jobs in the cloud"
- "--label=org.opencontainers.image.licenses=MIT"
- "--platform=linux/amd64"
extra_files:
- LICENSE
- image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-arm64"
dockerfile: Dockerfile
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=bsubio"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/bsubio/cli"
- "--label=org.opencontainers.image.description=CLI for easy running heavy duty compute jobs in the cloud"
- "--label=org.opencontainers.image.licenses=MIT"
- "--platform=linux/arm64"
extra_files:
- LICENSE
docker_manifests:
- name_template: "ghcr.io/bsubio/cli:{{ .Tag }}"
image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-amd64"
- "ghcr.io/bsubio/cli:{{ .Tag }}-arm64"
- name_template: "ghcr.io/bsubio/cli:v{{ .Major }}"
image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-amd64"
- "ghcr.io/bsubio/cli:{{ .Tag }}-arm64"
- name_template: "ghcr.io/bsubio/cli:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-amd64"
- "ghcr.io/bsubio/cli:{{ .Tag }}-arm64"
- name_template: "ghcr.io/bsubio/cli:latest"
image_templates:
- "ghcr.io/bsubio/cli:{{ .Tag }}-amd64"
- "ghcr.io/bsubio/cli:{{ .Tag }}-arm64"
homebrew_casks:
- name: bsubio
ids:
- default
repository:
owner: bsubio
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
branch: main
commit_author:
name: bsub.io
email: contact@bsub.io
homepage: https://www.bsub.io
description: CLI for easy running heavy duty compute jobs in the cloud
binaries:
- bsubio
skip_upload: false
url:
template: "https://github.com/bsubio/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
verified: "github.com/bsubio/cli/"
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/bsubio"]
end
# Announce releases (optional - uncomment if needed)
# announce:
# slack:
# enabled: true
# message_template: 'bsubio CLI {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'