forked from Tantalor93/dnspyre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
49 lines (49 loc) · 1.2 KB
/
.goreleaser.yaml
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
before:
hooks:
- go mod tidy
- go generate ./...
- sh scripts/completions.sh
- sh scripts/manpages.sh
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -X 'github.com/tantalor93/dnspyre/v2/cmd.Version={{.Version}}-{{ .Os }}-{{ .Arch }}'
archives:
- id: dnspyre
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- README.md
- completions/*
- manpages/*
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
brews:
- tap:
owner: tantalor93
name: homebrew-dnspyre
folder: Formula
homepage: https://tantalor93.github.io/dnspyre/
install: |-
bin.install "dnspyre"
bash_completion.install "completions/dnspyre.bash" => "_dnspyre"
zsh_completion.install "completions/dnspyre.zsh" => "_dnspyre"
man1.install Dir["manpages/*.1"]
dockers:
- use: docker
id: dnspyre
dockerfile: "Dockerfile-goreleaser"
image_templates:
- "ghcr.io/tantalor93/dnspyre:{{ .Tag }}"
- "ghcr.io/tantalor93/dnspyre:v{{ .Major }}"
- "ghcr.io/tantalor93/dnspyre:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/tantalor93/dnspyre:latest"