-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
133 lines (110 loc) · 3.22 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
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
131
132
133
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- # Comments
id: "dnscheck"
main: ./cmd/dnscheck/
env:
- CGO_ENABLED=0
goos:
- linux
- windows
# - darwin
archives:
- format: tar.gz
files:
- LICENSE
- README.md
- src: configs/dnscheck.yaml
dst: dnscheck.yaml
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
# note that this is an array of nfpm configs
- #
# ID of the nfpm config, must be unique.
#
# Default: 'default'
id: default
# Name of the package.
# Default: ProjectName
# Templates: allowed. (since v1.18)
package_name: dnscheck
# You can change the file name of the package.
#
# Default: '{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
# Templates: allowed.
file_name_template: "{{ .ConventionalFileName }}"
# Build IDs for the builds you want to create NFPM packages for.
# Defaults empty, which means no filtering.
# builds:
# - foo
# - bar
# Your app's vendor.
vendor: micophi
# Your app's homepage.
homepage: https://github.com/Micophi/dnscheck
# Your app's maintainer (probably you).
maintainer: Micophi <micophi@protonmail.com>
# Your app's description.
description: |-
Dnscheck installer package.
Software to test the blocking abilities of DNS servers against a list of malicious domain names.
# Your app's license.
license: MIT
# Formats to be generated.
formats:
- deb
umask: 0o002
# Packages your package depends on. (overridable)
dependencies:
- bash
- curl
- moreutils
bindir: /usr/bin
# version_metadata: git
# Version Release.
# release: 1
# Section.
section: default
# Priority.
priority: extra
contents:
- src: configs/dnscheck.yaml
dst: /etc/{{ .ProjectName }}/dnscheck.yaml
- src: scripts/*.sh
dst: /usr/bin
# Custom configuration applied only to the Deb packager.
deb:
# Lintian overrides
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
# The package is signed if a key_file is set
signature:
# PGP secret key file path (can also be ASCII-armored).
# The passphrase is taken from the environment variable
# `$NFPM_ID_DEB_PASSPHRASE` with a fallback to `$NFPM_ID_PASSPHRASE`,
# where ID is the id of the current nfpm config.
# The id will be transformed to uppercase.
# E.g. If your nfpm id is 'default' then the deb-specific passphrase
# should be set as `$NFPM_DEFAULT_DEB_PASSPHRASE`
#
# Templates: allowed.
# key_file: "{{ .Env.GPG_KEY_PATH }}"
# The type describes the signers role, possible values are "origin",
# "maint" and "archive".
#
# Default: 'origin'
type: origin