-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
56 lines (56 loc) · 1.51 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
before:
hooks:
- go mod download
- go mod tidy
builds:
- id: cidrgrep-darwin
ldflags:
- -s -w -X github.com/dotnetmentor/cidrgrep/version.Version={{.Version}} -X github.com/dotnetmentor/cidrgrep/version.Commit={{.FullCommit}}
goos:
- darwin
goarch:
- amd64
- arm64
- id: cidrgrep-linux
ldflags:
- -s -w -X github.com/dotnetmentor/cidrgrep/version.Version={{.Version}} -X github.com/dotnetmentor/cidrgrep/version.Commit={{.FullCommit}}
goos:
- linux
goarch:
- amd64
- arm64
archives:
- id: cidrgrep-archive
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: darwin
format: zip
files:
- README.md
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Version }}-next"
changelog:
skip: true
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- name: cidrgrep
tap:
owner: dotnetmentor
name: homebrew-tap
commit_author:
name: "Kristoffer Ahl"
homepage: https://github.com/dotnetmentor/cidrgrep
description: like grep but for IP/CIDR matching
license: Apache License 2.0
install: |
bin.install 'cidrgrep'
output = Utils.safe_popen_read("#{bin}/cidrgrep", 'completion', 'bash')
(bash_completion/'cidrgrep').write output
output = Utils.safe_popen_read("#{bin}/cidrgrep", 'completion', 'zsh')
(zsh_completion/'_cidrgrep').write output