forked from semihalev/sdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
137 lines (128 loc) · 2.75 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
131
132
133
134
135
136
137
env_files:
github_token: ~/.GH_TOKEN.txt
env:
- CGO_ENABLED=0
before:
hooks:
- go mod download
- go generate ./...
builds:
- id: nonf
targets:
- darwin_amd64
- darwin_arm64
- windows_amd64
- freebsd_amd64
- openbsd_amd64
- netbsd_amd64
flags:
- -trimpath
ldflags:
- -s -w
- id: linux
goos:
- linux
goarch:
- arm
- arm64
- mips
- mipsle
- mips64
- mips64le
goarm:
- 5
- 6
- 7
gomips:
- softfloat
flags:
- -trimpath
ldflags:
- -s -w
- id: nf
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -s -w
release:
github:
owner: semihalev
name: sdns
prerelease: false
draft: true
archives:
-
name_template: "{{ .ProjectName }}-{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
files:
- README.md
- LICENSE
checksum:
name_template: '{{ .ProjectName }}-{{ .Version }}_sha256sums.txt'
algorithm: sha256
changelog:
skip: true
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}'
builds:
- nf
homepage: https://sdns.dev
description: Privacy important, fast, recursive dns resolver server with dnssec support
maintainer: Yasar Alev <[email protected]>
license: MIT
bindir: /usr/bin
contents:
- src: "./contrib/linux/sdns.service"
dst: "/lib/systemd/system/sdns.service"
- src: "./contrib/linux/sdns.conf"
dst: "/etc/sdns.conf"
type: config
- dst: "/var/lib/sdns"
type: dir
scripts:
postinstall: "contrib/linux/adduser.sh"
release: 1
formats:
- deb
- rpm
overrides:
deb:
dependencies:
- systemd-sysv
rpm:
dependencies:
- systemd
brews:
-
repository:
owner: semihalev
name: homebrew-tap
folder: Formula
homepage: https://sdns.dev
description: Privacy important, fast, recursive dns resolver server with dnssec support
dependencies:
- name: go
type: build
commit_author:
name: semihalev
email: [email protected]
service: |
run [opt_bin/"sdns", "-config", etc/"sdns.conf"]
keep_alive true
require_root true
error_log_path var/"log/sdns.log"
log_path var/"log/sdns.log"
working_dir opt_prefix
test: |
fork do
exec bin/"sdns", "-config", testpath/"sdns.conf"
end
sleep(2)
assert_predicate testpath/"sdns.conf", :exist?