-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
159 lines (146 loc) · 4.33 KB
/
Copy path.goreleaser.yaml
File metadata and controls
159 lines (146 loc) · 4.33 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
version: 2
project_name: fs
# NB: the admin dashboard SPA embedded via go:embed
# (internal/adminhandler/frontend/dist) must be built BEFORE goreleaser runs —
# the release and snapshot workflows do this with npm. goreleaser does not build
# it, so a bare `goreleaser release` embeds whatever dist is already on disk.
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- riscv64
main: ./cmd/fs
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
archives:
- name_template: >-
{{ .ProjectName }}-
{{- .Os }}-
{{- .Arch }}
format_overrides:
- goos: windows
formats: [ zip ]
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
release:
mode: replace
draft: false
prerelease: auto
# Templates: allowed
# The tag must match what dockers_v2 below actually pushes ("v{{ .Version }}",
# not "{{ .Version }}"): goreleaser strips the leading v from .Version, so the
# unprefixed form names an image tag that was never pushed, and every reader
# who copies it out of the release notes gets a manifest-unknown error.
footer: |
## Docker images
```
docker pull {{ .Env.IMAGE }}:v{{ .Version }}
```
github:
owner: go-faster
name: fs
dockers_v2:
- images:
- "ghcr.io/go-faster/fs"
dockerfile: release.Dockerfile
platforms:
- linux/amd64
- linux/arm64
- linux/riscv64
tags:
- "v{{ .Version }}"
- "{{ if .IsNightly }}nightly{{ end }}"
- "{{ if not .IsNightly }}latest{{ end }}"
labels:
"io.artifacthub.package.readme-url": "https://raw.githubusercontent.com/go-faster/fs/main/README.md"
"io.artifacthub.package.logo-url": "https://avatars.githubusercontent.com/u/93744681?"
"io.artifacthub.package.maintainers": '[{"name":"Aleksandr Razumov","email":"ernado@go-faster.org"}]'
"io.artifacthub.package.license": "Apache 2.0"
"org.opencontainers.image.description": "S3-compatible storage"
"org.opencontainers.image.created": "{{.Date}}"
"org.opencontainers.image.name": "{{.ProjectName}}"
"org.opencontainers.image.revision": "{{.FullCommit}}"
"org.opencontainers.image.version": "{{.Version}}"
"org.opencontainers.image.source": "{{.GitURL}}"
annotations:
"org.opencontainers.image.description": "S3-compatible storage"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^test:'
- '^chore'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: 'Helm chart updates'
order: 700
regexp: '^.*?(feat|fix|chore)\(helm\)!?:.+$'
- title: 'Dependency updates'
regexp: '^.*?(feat|fix|chore)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^.*?feat(\(\S+\))??!?:.+$'
order: 100
- title: 'Security updates'
regexp: '^.*?sec(\(\S+\))??!?:.+$'
order: 150
- title: 'Performance updates'
regexp: '^.*?perf(\(\S+\))??!?:.+$'
order: 250
- title: 'Bug fixes'
regexp: '^.*?fix(\(\S+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: '^.*?docs(\(\S+\))??!?:.+$'
order: 400
- title: 'Benchmarking tooling changes'
regexp: '^.*?(\(\S*bench\S*\))!?:.+$'
order: 450
- title: 'Build process updates'
regexp: '^.*?build(\(\S+\))??!?:.+$'
order: 500
- title: 'CI/CD updates'
regexp: '^.*?ci(\(\S+\))??!?:.+$'
order: 600
- title: 'Updates to tests'
regexp: '^.*?test(\(\S+\))??!?:.+$'
order: 600
- title: Other work
order: 9999
sboms:
- artifacts: archive
nfpms:
- package_name: go-faster-fs
homepage: https://github.com/go-faster/fs
maintainer: Aleksandr Razumov <ernado@go-faster.org>
description: S3-compatible storage
license: Apache 2.0
formats:
- apk
- deb
- rpm
- archlinux
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package