-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yml
More file actions
299 lines (276 loc) · 7.92 KB
/
Copy path.goreleaser.yml
File metadata and controls
299 lines (276 loc) · 7.92 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
# GoReleaser configuration for Forge CLI
# Build system for cross-platform releases
version: 2
project_name: forge
# Pre-build hooks (run in root module context)
before:
hooks:
- go mod tidy
- go mod verify
- sh -c "cd cmd/forge && go mod tidy"
- go generate ./...
builds:
- id: forge
dir: ./cmd/forge
main: .
binary: forge
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# Ignore 32-bit architectures for modern CLI
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.buildTime={{.Date}}
- -X main.builtBy=goreleaser
flags:
- -trimpath
archives:
- id: forge-archives
name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
- LICENSE
- CHANGELOG.md
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'
- merge conflict
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: '^.*?feat(\(.+\))??!?:.+$'
order: 0
- title: 'Security Updates'
regexp: '^.*?sec(\(.+\))??!?:.+$'
order: 1
- title: 'Bug Fixes'
regexp: '^.*?fix(\(.+\))??!?:.+$'
order: 2
- title: 'Performance Improvements'
regexp: '^.*?perf(\(.+\))??!?:.+$'
order: 3
- title: 'Refactoring'
regexp: '^.*?refactor(\(.+\))??!?:.+$'
order: 4
- title: 'Documentation Updates'
regexp: '^.*?docs(\(.+\))??!?:.+$'
order: 5
- title: 'Build System'
regexp: '^.*?build(\(.+\))??!?:.+$'
order: 6
- title: 'Other Changes'
order: 999
release:
github:
owner: xraph
name: forge
draft: false
prerelease: auto
mode: replace
header: |
## Forge Framework {{ .Tag }} ({{ .Date }})
Welcome to this new release of Forge Framework!
footer: |
## Installation
### Using Go Install
```bash
go install github.com/xraph/forge/cmd/forge@{{ .Tag }}
```
### Download Binary
Download the appropriate binary for your platform from the assets below.
### Using Package Managers
```bash
# Homebrew (macOS/Linux)
brew install xraph/tap/forge
# Scoop (Windows)
scoop bucket add xraph https://github.com/xraph/scoop-bucket
scoop install forge
```
## What's Changed
Full changelog: https://github.com/xraph/forge/compare/{{ .PreviousTag }}...{{ .Tag }}
# Homebrew tap - DEPRECATED but still functional
# Awaiting clear migration path to homebrew_casks with compatible field structure
brews:
- repository:
owner: xraph
name: homebrew-tap
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
directory: Formula
homepage: https://github.com/xraph/forge
description: "Comprehensive backend framework for Go with enterprise-grade features"
license: MIT
dependencies:
- name: go
type: optional
install: |
bin.install "forge"
test: |
system "#{bin}/forge", "version"
# Scoop manifest
scoops:
- repository:
owner: xraph
name: scoop-bucket
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
homepage: https://github.com/xraph/forge
description: "Comprehensive backend framework for Go with enterprise-grade features"
license: MIT
# # Snapcraft packages
# snapcrafts:
# - id: forge-snap
# publish: true
# summary: Comprehensive backend framework for Go
# description: |
# Forge is a comprehensive, opinionated backend framework for Go that
# provides enterprise-grade features for building scalable, distributed applications.
# grade: stable
# confinement: strict
# license: MIT
# base: core22
# apps:
# forge:
# command: forge
# plugs: ["home", "network"]
# AUR packages for Arch Linux
# NOTE: Disabled - Requires AUR_KEY secret for SSH authentication
# To enable: Set up AUR account, add AUR_KEY secret to GitHub Actions, update maintainer email
# aurs:
# - name: forge-bin
# ids:
# - forge-archives
# homepage: https://github.com/xraph/forge
# description: "Comprehensive backend framework for Go with enterprise-grade features"
# maintainers:
# - 'Your Name <your.email@example.com>'
# license: MIT
# private_key: '{{ .Env.AUR_KEY }}'
# git_url: 'ssh://aur@aur.archlinux.org/forge-bin.git'
# package: |-
# # bin
# install -Dm755 "./forge" "${pkgdir}/usr/bin/forge"
# # license
# install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/forge/LICENSE"
# commit_author:
# name: goreleaserbot
# email: bot@goreleaser.com
# NFPM packages for Debian/RPM
nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
id: forge-packages
homepage: https://github.com/xraph/forge
description: |-
Forge is a comprehensive, opinionated backend framework for Go
that provides enterprise-grade features for building scalable,
distributed applications.
maintainer: Your Name <your.email@example.com>
license: MIT
vendor: Xraph
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/forge/copyright
file_info:
mode: 0644
- src: ./README.md
dst: /usr/share/doc/forge/README.md
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
dependencies:
- git
recommends:
- golang
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
# Docker images - Using buildx for cross-platform builds
# Note: dockers API is deprecated in favor of dockers_v2, but v2 syntax is still evolving
# and lacks full feature parity. Keeping dockers/docker_manifests until v2 is production-ready.
dockers:
- id: forge-amd64
image_templates:
- "ghcr.io/xraph/forge:{{ .Version }}-amd64"
- "ghcr.io/xraph/forge:latest-amd64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- id: forge-arm64
image_templates:
- "ghcr.io/xraph/forge:{{ .Version }}-arm64"
- "ghcr.io/xraph/forge:latest-arm64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
goarch: arm64
# Docker manifests for multi-arch images
docker_manifests:
- name_template: "ghcr.io/xraph/forge:{{ .Version }}"
image_templates:
- "ghcr.io/xraph/forge:{{ .Version }}-amd64"
- "ghcr.io/xraph/forge:{{ .Version }}-arm64"
- name_template: "ghcr.io/xraph/forge:latest"
image_templates:
- "ghcr.io/xraph/forge:latest-amd64"
- "ghcr.io/xraph/forge:latest-arm64"
# Git settings
git:
tag_sort: -version:refname
# Metadata
metadata:
mod_timestamp: '{{ .CommitTimestamp }}'