-
Notifications
You must be signed in to change notification settings - Fork 46
/
.goreleaser.yaml
84 lines (84 loc) · 2.02 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
# Mokey goreleaser configs
# See here: https://goreleaser.com
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=1
goarch:
- amd64
goos:
- linux
ldflags:
- -s -w -X github.com/ubccr/mokey/server.Version={{.Version}}
- -extldflags=-static
tags:
- sqlite_omit_load_extension
- osusergo
- netgo
archives:
- replacements:
linux: linux
amd64: x86_64
wrap_in_directory: true
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- LICENSE
- NOTICE
- README.md
- ChangeLog.md
- mokey.toml.sample
nfpms:
- vendor: University at Buffalo
homepage: https://github.com/ubccr/mokey
maintainer: Andrew E. Bruno <aebruno2@buffalo.edu>
license: MIT
description: |-
FreeIPA self-service account management tool
formats:
- deb
- rpm
overrides:
deb:
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
scripts:
postinstall: ./scripts/nfpm/postinstall.sh
rpm:
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
scripts:
postinstall: ./scripts/nfpm/postinstall.sh
rpm:
signature:
key_file: key.gpg
deb:
signature:
key_file: key.gpg
contents:
- src: ./scripts/nfpm/mokey.toml.default
dst: /etc/mokey/mokey.toml
type: "config|noreplace"
- src: ./scripts/nfpm/mokey.env
dst: /etc/default/mokey
type: "config|noreplace"
- src: ./scripts/nfpm/mokey.service
dst: /usr/lib/systemd/system/mokey.service
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-SNAPSHOT-{{.ShortCommit}}"
changelog:
sort: desc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Other
order: 999
filters:
exclude:
- '^docs:'
- 'typo'