-
Notifications
You must be signed in to change notification settings - Fork 13
/
.goreleaser.yaml
87 lines (87 loc) · 2.08 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
# Grendel goreleaser configs
# See here: https://goreleaser.com
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=1
goarch:
- amd64
goos:
- linux
ldflags:
- -s -w -X github.com/ubccr/grendel/internal/api.Version={{.Version}}
- -extldflags=-static
tags:
- sqlite_omit_load_extension
- osusergo
- netgo
archives:
- format: tar.gz
wrap_in_directory: true
name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}amd64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- LICENSES/*
- NOTICE
- README.md
- CHANGELOG.md
- configs/grendel.toml.sample
nfpms:
- vendor: University at Buffalo
homepage: https://github.com/ubccr/grendel
maintainer: Andrew E. Bruno <[email protected]>
license: GPLv3
description: |-
Bare Metal Provisioning for HPC
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: ./configs/grendel.toml.sample
dst: /etc/grendel/grendel.toml
type: "config|noreplace"
- src: ./scripts/nfpm/grendel.service
dst: /usr/lib/systemd/system/grendel.service
checksum:
name_template: "checksums.txt"
snapshot:
version_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"