-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
77 lines (77 loc) · 2.19 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
before:
hooks:
- go mod download
- go mod tidy
builds:
-
id: trail-digger-darwin
ldflags:
- -s -w -X github.com/k1LoW/trail-digger.version={{.Version}} -X github.com/k1LoW/trail-digger.commit={{.FullCommit}} -X github.com/k1LoW/trail-digger.date={{.Date}} -X github.com/k1LoW/trail-digger/version.Version={{.Version}}
goos:
- darwin
goarch:
- amd64
- arm64
-
id: trail-digger-linux
ldflags:
- -s -w -X github.com/k1LoW/trail-digger.version={{.Version}} -X github.com/k1LoW/trail-digger.commit={{.FullCommit}} -X github.com/k1LoW/trail-digger.date={{.Date}} -X github.com/k1LoW/trail-digger/version.Version={{.Version}}
goos:
- linux
goarch:
- amd64
archives:
-
id: trail-digger-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: trail-digger
tap:
owner: pepabo
name: homebrew-tap
commit_author:
name: 'GMO Pepabo, inc.'
homepage: https://github.com/pepabo/trail-digger
description: trail-digger is a tool for digging trail log files of AWS CloudTrail.
license: MIT
install: |
bin.install 'trail-digger'
output = Utils.safe_popen_read("#{bin}/trail-digger", 'completion', 'bash')
(bash_completion/'trail-digger').write output
output = Utils.safe_popen_read("#{bin}/trail-digger", 'completion', 'zsh')
(zsh_completion/'_trail-digger').write output
nfpms:
-
id: trail-digger-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- trail-digger-linux
homepage: https://github.com/pepabo/trail-digger
maintainer: 'GMO Pepabo, inc.'
description: trail-digger is a tool for digging trail log files of AWS CloudTrail.
license: MIT
formats:
- deb
- rpm
- apk
bindir: /usr/bin
epoch: 1