-
Notifications
You must be signed in to change notification settings - Fork 195
/
Copy path.goreleaser.yml
75 lines (66 loc) · 1.64 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
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: geodns
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X go.ntppool.org/common/version.VERSION={{.Version}}
goos:
- linux
- freebsd
- darwin
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: 386
- goos: freebsd
goarch: arm64
archives:
- files:
- service/**
- 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 <ask@develooper.com>
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 }}