-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
188 lines (172 loc) · 4.9 KB
/
.goreleaser.yaml
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
project_name: bloom-du
before:
hooks:
- go mod tidy
release:
github:
owner: capricornusx
name: bloom-du
name_template: '{{.Tag}}'
prerelease: auto
make_latest: true
footer: |
**Full Changelog**: https://github.com/capricornusx/bloom-du/compare/{{ .PreviousTag }}...{{ .Tag }}
## What to do next?
- Read the [Documentation](https://github.com/capricornusx/bloom-du)
draft: false
builds:
- goos:
- linux
- darwin
goarch:
- amd64
- "386"
- arm
- arm64
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: "386"
- goos: freebsd
goarch: "386"
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
- goos: freebsd
goarch: arm
- goos: windows
goarch: arm64
- goos: freebsd
goarch: arm64
main: .
ldflags: -s -w -X bloom-du/internal/build.Version={{.Version}}
binary: bloom-du
env:
# https://github.com/goreleaser/goreleaser/issues/225
- CGO_ENABLED=0
archives:
- id: bloom-du
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
# - LICENSE*
- README*
- CHANGELOG*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
changelog:
sort: asc
use: github
filters:
exclude:
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999
dist: dist
signs:
- cmd: gpg
args:
- --batch
- -u
- "{{ .Env.GPG_FINGERPRINT }}"
- --output
- $signature
- --clear-sign
- --detach-sig
- $artifact
signature: ${artifact}.asc
artifacts: checksum
dockers:
# You can have multiple Docker images.
- #
# ID of the image, needed if you want to filter by it later on (e.g. on custom publishers).
id: bloom-du
goos: linux
goarch: amd64
goamd64: "v1"
# IDs to filter the binaries/packages.
ids:
- bloom-du
# Templates of the Docker image names.
image_templates:
- "ghcr.io/capricornusx/bloom-du:{{ .Tag }}"
- "ghcr.io/capricornusx/bloom-du:v{{ .Major }}"
- "ghcr.io/capricornusx/bloom-du:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/capricornusx/bloom-du:latest"
# Skips the docker push.
# Could be useful if you also do draft releases.
#
# If set to auto, the release will not be pushed to the Docker repository
# in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
#
# Templates: allowed (since v1.19)
skip_push: false
# Path to the Dockerfile (from the project root).
# Default: 'Dockerfile'
# "{{ .Env.DOCKERFILE }}"
dockerfile: Dockerfile
# Set the "backend" for the Docker pipe.
# Valid options are: docker, buildx, podman.
# Podman is a GoReleaser Pro feature and is only available on Linux.
# Default: 'docker'
use: buildx
# Docker build flags. Templates: allowed
build_flag_templates:
# - --pull
- --label=org.opencontainers.image.title={{.ProjectName}}
- --label=org.opencontainers.image.version={{.Version }}
- --label=org.opencontainers.image.description="API for Bloom filter"
- --label=org.opencontainers.image.url=https://github.com/capricornusx/bloom-du
- --label=org.opencontainers.image.source=https://github.com/capricornusx/bloom-du
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.licenses=MIT
# - "--platform=linux/amd64/v3"
# Extra flags to be passed down to the push command.
push_flags:
- --tls-verify=false
# https://goreleaser.com/customization/nfpm/
nfpms:
- package_name: bloom-du
homepage: https://github.com/capricornusx/bloom-du
maintainer: Dmitry Dubinin <[email protected]>
description: |-
API for Bloom filter
license: Apache
formats:
- apk
- deb
- rpm
- archlinux
# rpm:
# signature:
# key_file: "{{ .Env.GPG_FINGERPRINT }}"
# deb:
# signature:
# key_file: "{{ .Env.GPG_FINGERPRINT }}"
# apk:
# signature:
# key_file: "{{ .Env.GPG_FINGERPRINT }}"
# archlinux:
# # https://wiki.archlinux.org/title/PKGBUILD#pkgbase
# # https://dev-gang.ru/article/rukovodstvo-po-upakovke-go-dlja-arch-linux-lk5qokhan5/
# scripts:
# preupgrade: ./scripts/packaging/arch/preupgrade.sh
# postupgrade: ./scripts/packaging/arch/postupgrade.sh
#
# pkgbase: bloom-du
# packager: Dmitry Dubinin <[email protected]>