-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.goreleaser.yml
84 lines (81 loc) · 2 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
project_name: cronn
dist: .bin
builds:
- id: cronn
binary: "cronn"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
dir: app
ldflags: "-s -w -X main.revision={{.Tag}}-{{.ShortCommit}}-{{.CommitDate}}"
archives:
- id: cronn
name_template: >-
{{.ProjectName}}_
{{- .Tag}}_
{{- if eq .Os "darwin"}}macos
{{- else if eq .Os "windows"}}win
{{- else}}{{.Os}}{{end}}_
{{- if eq .Arch "amd64"}}x86_64
{{- else if eq .Arch "386"}}i386
{{- else}}{{.Arch}}{{end}}
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
rlcp: true
brews:
-
name: cronn
tap:
owner: umputun
name: homebrew-apps
branch: master
commit_author:
name: umputun
email: umputun@gmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://cronn.umputun.dev"
description: "Cronn is a crontab jobs scheduler with some nice extras. It allows to run commands on specified time intervals and can be used directly as well as from a container."
license: "MIT"
nfpms:
- id: cronn
package_name: cronn
file_name_template: "{{.ProjectName}}_{{.Tag}}_{{.Os}}_{{.Arch}}"
vendor: Umputun
homepage: https://github.com/umputun/cronn
maintainer: Umputun <umputun@gmail.com>
description: cron replacement with extras
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1
release: 1
contents:
- src: cronn.service
dst: /etc/systemd/system/cronn.service
- src: crontab.example
dst: /etc/cronntab
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"