-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
72 lines (64 loc) · 1.77 KB
/
.goreleaser.yaml
File metadata and controls
72 lines (64 loc) · 1.77 KB
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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: ayano
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Amd64 }}-{{ .Amd64 }}{{ end }}"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
goarm:
- 7
goamd64:
- v2
- v3
flags:
- -trimpath
ldflags:
- -s -w -X github.com/taoky/ayano/pkg/info.Version={{.Version}} -X github.com/taoky/ayano/pkg/info.BuildDate={{.Date}} -X github.com/taoky/ayano/pkg/info.GitCommit={{.Commit}}
no_unique_dist_dir: true
archives:
- formats: [ 'binary' ]
name_template: "{{ .Binary }}"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native
nfpms:
- id: default
package_name: ayano
homepage: https://github.com/taoky/ayano
maintainer: "taoky <me@taoky.moe>"
description: |-
A simple log analysis tool for Nginx, Apache, or other web server logs
formats:
- deb
umask: 0o022
section: utils
priority: extra
provides:
- ayano
scripts:
postinstall: ./assets/postinst.sh
preremove: ./assets/prerm.sh
postremove: ./assets/postrm.sh
contents:
- src: "./{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Amd64 }}-{{ .Amd64 }}{{ end }}"
dst: /usr/bin/ayano
type: symlink
- src: ./assets/ayano-logrotate
dst: /etc/logrotate.d/ayano
- src: ./assets/ayano.service
dst: /lib/systemd/system/
- src: ./assets/fail2ban/filter.d/ayano.conf
dst: /etc/fail2ban/filter.d/
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj