-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.goreleaser.yaml
91 lines (91 loc) · 2.63 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
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
version: 2
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/v3/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:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
brews:
- repository:
owner: tantalor93
name: homebrew-dnspyre
directory: 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 "manpages/dnspyre.1.gz"
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"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.authors=Ondřej Benkovský <[email protected]>"
- "--label=org.opencontainers.image.url=https://tantalor93.github.io/dnspyre"
- "--label=org.opencontainers.image.documentation=https://tantalor93.github.io/dnspyre"
- "--label=org.opencontainers.image.source=https://github.com/Tantalor93/dnspyre"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description=tool for a high QPS DNS benchmark"
nfpms:
- package_name: dnspyre
homepage: https://tantalor93.github.io/dnspyre
maintainer: Ondřej Benkovský <[email protected]>
description: |-
tool for a high QPS DNS benchmark
license: MIT
formats:
- apk
- deb
- rpm
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
args:
- "sign-blob"
- "--key=env://COSIGN_PRIVATE_KEY"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: all
docker_signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
args:
- "sign"
- "--key=env://COSIGN_PRIVATE_KEY"
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: all