forked from nameserver-systems/pdns-distribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml.tmpl
122 lines (113 loc) · 3.51 KB
/
.goreleaser.yml.tmpl
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
project_name: pdns-distribute
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds: {{range $id, $path := .Binaries}}
- id: "{{$id}}"
main: {{$path}}
binary: {{$id}}
env:
- CGO_ENABLED=0
flags:
- -trimpath
- -mod=readonly
ldflags:
- -s -w -extldflags '-static' -X main.version={{"{{.Version}}"}} -X main.commit={{"{{.Commit}}"}} -X main.date={{"{{.Date}}"}}
tags:
- osusergo
- netgo
goos:
- linux
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: 386
- goarm: mips64
gomips: hardfloat
hooks:
post: upx {{"\"{{ .Path }}\""}} {{end}}
archives:
- id: pdns-distribute-archiv
builds: {{range $id, $path := .Binaries}}
- {{$id}} {{end}}
format: tar.gz
files:
- LICENSE.txt
nfpms:
- id: pdns-distribute-primary-package-latest
package_name: pdns-distribute-primary
file_name_template: {{"\"{{ .ProjectName }}-primary_latest_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}\""}}
builds: {{range $id, $bin := .PrimaryBinaries}}
- {{$bin}} {{end}} {{range $id, $bin := .ToolBinaries}}
- {{$bin}} {{end}}
vendor: linxside
homepage: https://nameserver.systems
maintainer: linxside {{"<noreply@linxsi.de>"}}
description: dns microserivces
license: mit
formats:
- deb
dependencies:
- git
- pdns-server
conflicts:
- pdns-distribute-secondary
bindir: /opt/pdns-distribute
contents: {{range $id, $bin := .PrimaryBinaries}}
- src: "init/{{$bin}}/{{$bin}}.service"
dst: "/lib/systemd/system/{{$bin}}.service"{{end}}{{range $id, $bin := .PrimaryBinaries}}
- src: "configs/{{$bin}}/config.toml"
dst: "/etc/{{$bin}}/config.toml"
type: config{{end}}
scripts:
preinstall: "scripts/package/primary/preinstall.sh"
postinstall: "scripts/package/primary/postinstall.sh"
preremove: "scripts/package/primary/preremove.sh"
postremove: "scripts/package/primary/postremove.sh"
- id: pdns-distribute-secondary-package-latest
package_name: pdns-distribute-secondary
file_name_template: {{"\"{{ .ProjectName }}-secondary_latest_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}\""}}
builds: {{range $id, $bin := .SecondaryBinaries}}
- {{$bin}} {{end}}
vendor: linxside
homepage: https://nameserver.systems
maintainer: linxside {{"<noreply@linxsi.de>"}}
description: dns microserivces
license: mit
formats:
- deb
dependencies:
- git
- pdns-server
conflicts:
- pdns-distribute-primary
bindir: /opt/pdns-distribute
contents: {{range $id, $bin := .SecondaryBinaries}}
- src: "init/{{$bin}}/{{$bin}}.service"
dst: "/lib/systemd/system/{{$bin}}.service"{{end}}{{range $id, $bin := .SecondaryBinaries}}
- src: "configs/{{$bin}}/config.toml"
dst: "/etc/{{$bin}}/config.toml"
type: config{{end}}
scripts:
preinstall: "scripts/package/secondary/preinstall.sh"
postinstall: "scripts/package/secondary/postinstall.sh"
preremove: "scripts/package/secondary/preremove.sh"
postremove: "scripts/package/secondary/postremove.sh"
checksum:
name_template: {{"\"{{ .ProjectName }}_latest_checksums.txt\""}}
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: nameserver-systems
name: pdns-distribute
dist: bin/