-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
86 lines (86 loc) · 2.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
85
86
before:
hooks:
- go mod download
- go mod tidy
builds:
-
id: hrv-darwin
binary: hrv
main: ./cmd/hrv/main.go
ldflags:
- -s -w -X github.com/k1LoW/harvest.version={{.Version}} -X github.com/k1LoW/harvest.commit={{.FullCommit}} -X github.com/k1LoW/harvest.date={{.Date}} -X github.com/k1LoW/harvest/version.Version={{.Version}}
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
-
id: hrv-linux
binary: hrv
main: ./cmd/hrv/main.go
ldflags:
- -s -w -X github.com/k1LoW/harvest.version={{.Version}} -X github.com/k1LoW/harvest.commit={{.FullCommit}} -X github.com/k1LoW/harvest.date={{.Date}} -X github.com/k1LoW/harvest/version.Version={{.Version}}
- -linkmode external
- -extldflags "-static"
env:
- CGO_ENABLED=1
- CC=/usr/local/bin/x86_64-linux-musl-cc
goos:
- linux
goarch:
- amd64
archives:
-
id: harvest-archive
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: darwin
format: zip
files:
- CREDITS
- README.md
- CHANGELOG.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: harvest
github:
owner: k1LoW
name: homebrew-tap
commit_author:
name: k1LoW
email: k1lowxb@gmail.com
homepage: https://github.com/k1LoW/harvest
description: Portable log aggregation tool for middle-scale system operation/observation.
install: |
system './hrv', 'completion', 'bash', '--out', 'hrv.bash'
system './hrv', 'completion', 'zsh', '--out', 'hrv.zsh'
bin.install 'hrv'
bash_completion.install 'hrv.bash' => 'hrv'
zsh_completion.install 'hrv.zsh' => '_hrv'
nfpms:
-
id: harvest-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- hrv-linux
homepage: https://github.com/k1LoW/harvest
maintainer: Ken'ichiro Oyama <k1lowxb@gmail.com>
description: Portable log aggregation tool for middle-scale system operation/observation.
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1