-
Notifications
You must be signed in to change notification settings - Fork 307
/
.goreleaser.yml
80 lines (74 loc) · 1.69 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
version: 1
before:
hooks:
- go mod download
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- ppc64le
- s390x
ldflags:
- "-s"
- "-w"
- "-X github.com/open-policy-agent/conftest/internal/commands.version={{.Version}}"
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "linux" }}Linux
{{- else if eq .Os "windows" }}Windows
{{- else if eq .Os "darwin" }}Darwin
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- plugin/*.sh
checksum:
name_template: 'checksums.txt'
changelog:
use: github
groups:
- title: New Features
regexp: '^.*?feat(ure)?(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug Fixes
regexp: '^.*?(bug|fix)(\([[:word:]]+\))??!?:.+$'
order: 1
- title: OPA Changes
regexp: '(?i)bump (opa|github.com/open-policy-agent/opa)'
order: 5
- title: Other Changes
order: 999
sort: asc
filters:
exclude:
- '^.*?docs(\([[:word:]]+\))??!?:.+$'
- '^.*?test(\([[:word:]]+\))??!?:.+$'
- '^.*?misc(\([[:word:]]+\))??!?:.+$'
- '^.*?typo(\([[:word:]]+\))??!?:.+$'
- '(?i) typo( |\.|\r?\n)'
# Publishes the deb and rpm files to the GitHub releases page.
nfpms:
- bindir: /usr/bin
description: "Test your configuration using Open Policy Agent"
formats:
- deb
- rpm
homepage: https://github.com/open-policy-agent/conftest
maintainer: jpreese <[email protected]>
license: Apache-2.0