-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
205 lines (184 loc) · 4.63 KB
/
Copy path.goreleaser.yaml
File metadata and controls
205 lines (184 loc) · 4.63 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: brutus
before:
hooks:
- go mod tidy
builds:
- id: brutus
main: ./cmd/brutus
binary: brutus
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.BuildTime={{.Date}}
- -X main.CommitSHA={{.ShortCommit}}
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- arm64
- "386"
- arm
goarm:
- "7"
ignore:
# Ignore 386 and arm for non-Linux platforms
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
- goos: freebsd
goarch: "386"
- goos: freebsd
goarch: arm
- id: brutus-packed
main: ./cmd/brutus
binary: brutus
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.BuildTime={{.Date}}
- -X main.CommitSHA={{.ShortCommit}}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
upx:
- enabled: true
ids:
- brutus-packed
compress: best
lzma: true
archives:
- id: default
ids:
- brutus
formats:
- tar.gz
name_template: >-
{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- README.md
- id: packed
ids:
- brutus-packed
formats:
- tar.gz
name_template: >-
{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}-upx
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- README.md
checksum:
name_template: SHA256SUMS.txt
algorithm: sha256
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^ci:"
- "^chore:"
- "^test:"
- Merge pull request
- Merge branch
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug Fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Performance
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Security
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Other
order: 999
release:
github:
owner: praetorian-inc
name: brutus
draft: false
prerelease: auto
name_template: "Brutus {{ .Tag }}"
header: |
## Installation
### Go Install
```bash
go install github.com/praetorian-inc/brutus/cmd/brutus@{{ .Tag }}
```
### Download Binary
Download the appropriate binary for your platform from the assets below.
```bash
# Linux (amd64)
curl -LO https://github.com/praetorian-inc/brutus/releases/download/{{ .Tag }}/brutus-linux-amd64.tar.gz
tar -xzf brutus-linux-amd64.tar.gz
chmod +x brutus
sudo mv brutus /usr/local/bin/
# macOS (Apple Silicon)
curl -LO https://github.com/praetorian-inc/brutus/releases/download/{{ .Tag }}/brutus-darwin-arm64.tar.gz
tar -xzf brutus-darwin-arm64.tar.gz
chmod +x brutus
sudo mv brutus /usr/local/bin/
```
### Verify Checksums
```bash
sha256sum -c SHA256SUMS.txt
```
footer: |
## Supported Platforms
| OS | Architecture | Binary |
|----|--------------|--------|
| Linux | amd64 | `brutus-linux-amd64.tar.gz` |
| Linux | arm64 | `brutus-linux-arm64.tar.gz` |
| Linux | 386 | `brutus-linux-386.tar.gz` |
| Linux | arm (v7) | `brutus-linux-armv7.tar.gz` |
| macOS | amd64 (Intel) | `brutus-darwin-amd64.tar.gz` |
| macOS | arm64 (Apple Silicon) | `brutus-darwin-arm64.tar.gz` |
| Windows | amd64 | `brutus-windows-amd64.zip` |
| Windows | arm64 | `brutus-windows-arm64.zip` |
| Windows | 386 | `brutus-windows-386.zip` |
| FreeBSD | amd64 | `brutus-freebsd-amd64.tar.gz` |
| FreeBSD | arm64 | `brutus-freebsd-arm64.tar.gz` |
### UPX-Compressed Binaries (smaller, same functionality)
| OS | Architecture | Binary |
|----|--------------|--------|
| Linux | amd64 | `brutus-linux-amd64-upx.tar.gz` |
| Linux | arm64 | `brutus-linux-arm64-upx.tar.gz` |
| macOS | amd64 (Intel) | `brutus-darwin-amd64-upx.tar.gz` |
| macOS | arm64 (Apple Silicon) | `brutus-darwin-arm64-upx.tar.gz` |
| Windows | amd64 | `brutus-windows-amd64-upx.zip` |
---
**Full Changelog**: https://github.com/praetorian-inc/brutus/compare/{{ .PreviousTag }}...{{ .Tag }}
announce:
skip: true