-
Notifications
You must be signed in to change notification settings - Fork 191
/
.goreleaser.yml
92 lines (85 loc) · 2 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
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: geodns
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.VERSION={{.Version}}
- -X main.gitVersion={{.ShortCommit}}
- -X main.buildTime={{.Date}}
goos:
- linux
- freebsd
- darwin
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: 386
- goos: freebsd
goarch: arm64
- id: geodns-logs
main: ./geodns-logs/
binary: geodns-logs
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- darwin
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: 386
- goos: freebsd
goarch: arm64
archives:
- files:
- service/**
- service-logs/**
- LICENSE
- README.md
checksum:
name_template: "checksums.txt"
snapshot:
name_template: '{{ .Tag }}{{ if index .Env "DRONE_BUILD_NUMBER" }}-{{ .Env.DRONE_BUILD_NUMBER }}{{ end }}'
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: geodns
# Name of the package.
# Defaults to `ProjectName`.
package_name: geodns
# release: {{ if index .Env "DRONE_BUILD_NUMBER" }}{{ .Env.DRONE_BUILD_NUMBER }}{{ else }}1{{ end }}
vendor: NTP Pool Project
homepage: https://www.ntppool.org/
maintainer: Ask Bjørn Hansen <[email protected]>
description: GeoDNS server
license: Apache 2.0
file_name_template: "{{ .ConventionalFileName }}"
formats:
- deb
- rpm
- apk
bindir: /usr/bin
contents:
- src: "scripts/geodns.service"
dst: "/etc/systemd/system/geodns.service"
- src: "scripts/defaults"
dst: "/etc/default/geodns.sample"
type: config
scripts:
postinstall: scripts/postinstall.sh
overrides:
rpm:
#file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
# {{ if index .Env "DRONE_BUILD_NUMBER" }}-{{ .Env.DRONE_BUILD_NUMBER }}{{ end }}