-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
91 lines (89 loc) · 2.39 KB
/
.goreleaser.yml
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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: crs-toolchain
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- id: "crs-toolchain"
env:
- CGO_ENABLED=0
binary: crs-toolchain
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- windows_amd64
archives:
- format_overrides:
- goos: windows
format: zip
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Others
order: 999
filters:
exclude:
- '^docs'
- '^test'
release:
prerelease: auto
dockers:
- image_templates:
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-amd64"
use: buildx
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-arm64"
use: buildx
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
- name_template: "ghcr.io/coreruleset/crs-toolchain:latest"
image_templates:
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-amd64"
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-arm64"
- name_template: "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}"
image_templates:
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-amd64"
- "ghcr.io/coreruleset/crs-toolchain:{{ .Version }}-arm64"
nfpms:
- id: "crs-toolchain"
builds: ["crs-toolchain"]
formats:
- deb
- rpm
bindir: /usr/bin
file_name_template: '{{ .ConventionalFileName }}'
vendor: OWASP Core Rule Set Project
homepage: https://github.com/coreruleset/crs-toolchain
maintainer: [email protected]
description:
CRS ToolChain helper
license: APL2
announce:
slack:
enabled: true
message_template: >
{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}
channel: '#coreruleset-notify'
username: 'Releaser'
icon_emoji: ':new:'
attachments: []