-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gorelease.yaml
More file actions
199 lines (180 loc) · 5.22 KB
/
.gorelease.yaml
File metadata and controls
199 lines (180 loc) · 5.22 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
project_name: sizely
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: capacity-calc
binary: capacity-calc
main: ./cmd/capacity-calc
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
universal_binaries:
- id: capacity-calc-universal
replace: true
name_template: capacity-calc
archives:
- id: default
builds:
- capacity-calc
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- CHANGELOG.md
- examples/**/*
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^build:"
- "^style:"
- "^refactor:"
- "^chore:"
- Merge pull request
- Merge branch
groups:
- title: "New Features"
regexp: '^.*?feat(\(.+\))??!?:.+$'
order: 0
- title: "Bug Fixes"
regexp: '^.*?fix(\(.+\))??!?:.+$'
order: 1
- title: "Performance Improvements"
regexp: '^.*?perf(\(.+\))??!?:.+$'
order: 2
- title: "Documentation Updates"
regexp: '^.*?docs(\(.+\))??!?:.+$'
order: 3
- title: "Other Changes"
order: 999
release:
github:
owner: yourusername
name: sprint-capacity-calculator
draft: false
prerelease: auto
name_template: "Release {{.Version}}"
header: |
## Sprint Capacity Calculator {{.Version}}
**Release Date:** {{.Date}}
### What's Changed
footer: |
### Installation
#### Using Go Install
```bash
go install github.com/yourusername/sprint-capacity-calculator/cmd/capacity-calc@{{.Version}}
```
#### Download Binary
Download the appropriate binary for your platform from the assets below.
#### Using Homebrew (macOS/Linux)
```bash
brew install yourusername/tap/capacity-calc
```
brews:
- name: capacity-calc
repository:
owner: yourusername
name: homebrew-tap
directory: Formula
homepage: https://github.com/yourusername/sprint-capacity-calculator
description: "CLI tool for SRE teams to calculate sprint capacity using T-shirt size estimation"
license: MIT
dependencies:
- name: go
type: optional
test: |
system "#{bin}/capacity-calc", "--version"
install: |
bin.install "capacity-calc"
dockers:
- image_templates:
- "ghcr.io/yourusername/sprint-capacity-calculator:{{ .Version }}-amd64"
- "ghcr.io/yourusername/sprint-capacity-calculator:latest-amd64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/yourusername/sprint-capacity-calculator"
- image_templates:
- "ghcr.io/yourusername/sprint-capacity-calculator:{{ .Version }}-arm64"
- "ghcr.io/yourusername/sprint-capacity-calculator:latest-arm64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/yourusername/sprint-capacity-calculator"
docker_manifests:
- name_template: "ghcr.io/yourusername/sprint-capacity-calculator:{{ .Version }}"
image_templates:
- "ghcr.io/yourusername/sprint-capacity-calculator:{{ .Version }}-amd64"
- "ghcr.io/yourusername/sprint-capacity-calculator:{{ .Version }}-arm64"
- name_template: "ghcr.io/yourusername/sprint-capacity-calculator:latest"
image_templates:
- "ghcr.io/yourusername/sprint-capacity-calculator:latest-amd64"
- "ghcr.io/yourusername/sprint-capacity-calculator:latest-arm64"
nfpms:
- id: packages
package_name: capacity-calc
vendor: yourusername
homepage: https://github.com/yourusername/sprint-capacity-calculator
maintainer: Your Name <your.email@example.com>
description: |-
CLI tool for SRE teams to calculate sprint capacity using T-shirt size estimation.
Helps with sprint planning and capacity management for agile teams.
license: MIT
formats:
- deb
- rpm
- apk
dependencies:
- git
recommends:
- jq
bindir: /usr/bin