This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
192 lines (160 loc) · 4.73 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
project_name: gcron
before:
hooks:
- go mod download
builds:
-
id: gcron
main: ./cmd/gcron/
binary: gcron
-
id: gcrond
main: ./cmd/gcrond/
binary: gcrond
nfpms:
# note that this is an array of nfpm configs
-
id: gcrond
# Name of the package.
# Defaults to `ProjectName`.
package_name: gcrond
# You can change the file name of the package.
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
file_name_template: "gcrond_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# Build IDs for the builds you want to create NFPM packages for.
# Defaults to all builds.
builds:
- gcrond
# Replacements for GOOS and GOARCH in the package name.
# Keys should be valid GOOSs or GOARCHs.
# Values are the respective replacements.
# Default is empty.
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
linux: Tux
# Your app's vendor.
# Default is empty.
# vendor: Drum Roll Inc.
# Your app's homepage.
# Default is empty.
# homepage: https://example.com/
# Your app's maintainer (probably you).
# Default is empty.
maintainer: Mo <[email protected]>
# Your app's description.
# Default is empty.
description: gcron server
# Your app's license.
# Default is empty.
license: MIT
# Formats to be generated.
formats:
- deb
- rpm
# Packages your package depends on.
dependencies:
- bash
# Packages your package recommends installing.
recommends:
- npm
# Packages your package suggests installing.
# suggests:
# - cvs
# - ksh
# Packages that conflict with your package.
# conflicts:
# - svn
# - bash
# Override default /usr/local/bin destination for binaries
bindir: /usr/local/bin
# Package epoch.
# Defaults to empty.
epoch: 1
# Package release.
# Defaults to empty.
release: 1
# Empty folders that should be created and managed by the packager
# implementation.
# Default is empty.
empty_folders:
- /var/log/gcron/
- /etc/gcron/
- /var/www/gcron/web/static
- /var/lib/gcrond/data
# Files to add to your package (beyond the binary).
# Keys are source paths/globs to get the files from.
# Values are the destination locations of the files in the package.
# Use globs to add all contents of a folder.
files:
"web/static/*": "/var/www/gcron/web/static"
"web/static/public/dist/**": "/var/www/gcron/web/static/public/dist"
"scripts/etc/init.d/gcrond": "/etc/init.d/gcrond"
# Config files to add to your package. They are about the same as
# the files keyword, except package managers treat them differently (while
# uninstalling, mostly).
# Keys are source paths/globs to get the files from.
# Values are the destination locations of the files in the package.
config_files:
"configs/gcrond_pkg.yml": "/etc/gcron/gcrond.yml"
# 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"
# Some attributes can be overrided per package format.
# overrides:
# deb:
# conflicts:
# - subversion
# dependencies:
# - git
# suggests:
# - gitk
# recommends:
# - tig
# empty_folders:
# - /var/log/bar
# rpm:
# replacements:
# amd64: x86_64
# name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
# files:
# "tmp/man.gz": "/usr/share/man/man8/app.8.gz"
# config_files:
# "tmp/app_generated.conf": "/etc/app-rpm.conf"
# scripts:
# preinstall: "scripts/preinstall-rpm.sh"
-
id: gcron
package_name: gcron
file_name_template: "gcron_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- gcron
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
linux: Tux
maintainer: Mo <[email protected]>
description: Software to execute a bash command with extra features
license: MIT
formats:
- deb
- rpm
dependencies:
- bash
recommends:
- npm
bindir: /usr/local/bin
epoch: 1
release: 1
empty_folders:
- /var/log/gcron/
- /etc/gcron/
config_files:
"configs/gcron.yml": "/etc/gcron/gcron.yml"