-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
130 lines (124 loc) · 3.8 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
env:
- GO111MODULE=on
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
- ./bin/completion
- ./bin/manpages
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=source
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
brews:
- repository:
owner: tomba-io
name: homebrew-tap
goarm: "7"
homepage: https://tomba.io
description: CLI utility to search or verify lists of email addresses in minutes.
license: Apache-2.0
test: |
system "#{bin}/tomba version"
dependencies:
- name: go
type: optional
- name: git
install: |-
bin.install "tomba"
extra_install: |-
bash_completion.install "./res/package/completion/tomba.bash" => "tomba"
zsh_completion.install "./res/package/completion/tomba.zsh" => "_tomba"
fish_completion.install "./res/package/completion/tomba.fish"
man1.install "./res/package/manpages/tomba.1.gz"
scoops:
- repository:
owner: tomba-io
name: scoop-bucket
homepage: https://tomba.io
description: CLI utility to search or verify lists of email addresses in seconds.
license: Apache-2.0
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
homepage: https://tomba.io
description: CLI utility to search or verify lists of email addresses in seconds.
maintainer: Mohamed Ben rebia <b.mohamed@tomba.io>
license: Apache-2.0
vendor: Tomba
section: utils
formats:
- apk
- deb
- rpm
- archlinux
dependencies:
- git
- systemd
recommends:
- golang
bindir: /usr/bin
contents:
- src: ./res/package/system/tomba.service
dst: /lib/systemd/system/tomba.service
- src: ./res/package/completion/tomba.bash
dst: /usr/share/bash-completion/completions/tomba
file_info:
mode: 0644
- src: ./res/package/completion/tomba.fish
dst: /usr/share/fish/vendor_completions.d/tomba.fish
file_info:
mode: 0644
- src: ./res/package/completion/tomba.zsh
dst: /usr/share/zsh/vendor-completions/_tomba
file_info:
mode: 0644
- src: ./res/package/manpages/tomba.1.gz
dst: /usr/share/man/man1/tomba.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/tomba/copyright
file_info:
mode: 0644
scripts:
postinstall: ./res/package/scripts/postinstall.sh
rpm:
signature:
key_file: /tmp/signing-key.gpg
deb:
signature:
key_file: /tmp/signing-key.gpg
type: origin
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch