-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
104 lines (97 loc) · 2.43 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
---
project_name: hmcli
version: 2
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_arm
- linux_arm64
- darwin_amd64
- windows_amd64
ldflags:
- -s -w
- -X {{ .ProjectName }}/cmd.Version={{.Version}}
- -X {{ .ProjectName }}/cmd.Commit={{.ShortCommit}}
- -X {{ .ProjectName }}/cmd.Date={{ time "2006-01-02" }}
- -X {{ .ProjectName }}/cmd.Name={{.ProjectName}}
changelog:
use: git
filters:
exclude:
- '^Merge branch'
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Refactoring'
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 2
- title: Others
order: 999
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-beta"
archives:
- id: archive
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- Icinga2_basket.json
- "*.md"
- LICENSE
- src: hmcli_config.yaml
dst: hmcli.yaml
nfpms:
-
id: packages
# dont use {{ .ProjectName }} here :(
package_name: hmcli
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# builds:
license: GPL-3
bindir: /usr/lib/nagios/plugins
vendor: Tommi2Day
maintainer: "Tommi2Day <[email protected]>"
description: |-
Query Tool and Nagios/Icinga check plugin for Homematic/Raspberrymatic with XMLAPI
formats:
- rpm
- deb
# dependencies:
provides:
# dont use {{ .ProjectName }} here :(
- hmcli
replaces:
- check_hm
contents:
- src: "*.md"
dst: /usr/share/doc/{{ .ProjectName }}/
- src: Icinga2_basket.json
dst: /usr/share/doc/{{ .ProjectName }}/Icinga2_basket.json
- src: LICENSE
dst: /usr/share/doc/{{ .ProjectName }}/LICENSE
- src: hmcli_config.yaml
dst: /usr/share/doc/{{ .ProjectName }}/hmcli.yaml
- src: hmcli_config.yaml
dst: /etc/nagios-plugins/config/hmcli.yaml
type: config
- src: /usr/lib/nagios/plugins/hmcli
dst: /usr/bin/hmcli
type: "symlink"
release:
github:
owner: tommi2day
name: hmcli
replace_existing_draft: true
draft: true
header: |
## hmcli Release {{ .Tag }} ({{ time "2006-01-02" }})
target_commitish: '{{ .Commit }}'