-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
132 lines (104 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
project_name: SmartReboot
before:
hooks:
- go mod tidy
builds:
- id: "smartreboot"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- "386"
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
ldflags:
- -X "main.Version={{.Version}}"
main: ./cmd/cli/main.go
binary: "smartreboot"
- id: "smartrebootd"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- "386"
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
main: ./cmd/daemon/main.go
binary: "smartrebootd"
archives:
- replacements:
386: i386
files:
- README.md
- LICENSE
- resources/*
nfpms:
- replacements:
386: i386
vendor: Brenek Harrison
homepage: https://github.com/BrenekH/smartreboot#README
maintainer: Brenek Harrison <[email protected]>
description: Reboot a machine without interrupting ongoing work.
license: GPLv3
formats:
- deb
- rpm
bindir: /usr/bin
release: "1"
section: default
priority: extra
contents:
- dst: /etc/smartreboot
type: dir
file_info:
mode: 0755
- dst: /etc/smartreboot/rebootchecks
type: dir
file_info:
mode: 0755
- dst: /etc/smartreboot/blockchecks
type: dir
file_info:
mode: 0755
- src: ./resources/systemd.service
dst: /usr/lib/systemd/system/smartrebootd.service
- src: ./resources/conf-template.conf
dst: /etc/smartreboot/smartreboot.conf
type: config
- src: ./resources/debian-reboot-required
dst: /etc/smartreboot/rebootchecks/00-debain-reboot-required
packager: deb
# Scripts to execute during the installation of the package.
# Keys are the possible targets during the installation process
# Values are the paths to the scripts which will be executed
# scripts:
# preinstall: "scripts/preinstall.sh"
# postinstall: "scripts/postinstall.sh"
# preremove: "scripts/preremove.sh"
# postremove: "scripts/postremove.sh"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
draft: true
prerelease: auto
name_template: "Version {{.Version}}"
announce:
skip: true