-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
78 lines (75 loc) · 2.17 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
before:
hooks:
- go mod tidy
builds:
- id: void
binary: void
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- id: void
ids:
- void
goos: linux
goarch: amd64
dockerfile: deployment/docker/Dockerfile
image_templates:
- "ghcr.io/devnw/void:{{ .ShortCommit }}"
- "ghcr.io/devnw/void:v{{ .Major }}"
- "ghcr.io/devnw/void:{{ .Tag }}"
- "ghcr.io/devnw/void:latest"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=Void DNS Sink Hole"
- "--label=org.opencontainers.image.description=Void is a DNS sink hole and local DNS resolver"
- "--label=org.opencontainers.image.url=https://avoid.dev"
- "--label=org.opencontainers.image.authors=info@avoid.dev"
- "--label=org.opencontainers.image.source=https://github.com/devnw/void"
- "--label=org.opencontainers.image.documentation=https://avoid.dev"
- "--label=org.opencontainers.image.licenses=Apache 2.0"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
extra_files:
- LICENSE
- deployment/config/config.yaml
release:
prerelease: auto
nfpms:
- maintainer: Developer Network (devnw)
description: Void DNS Sink Hole and Local DNS Resolver
homepage: https://avoid.dev
license: Apache License, Version 2.0
builds:
- void
formats:
- deb
- apk
- rpm
bindir: /usr/bin
contents:
- src: ./deployment/config/config.yaml
dst: /etc/void/config.yaml
type: config
- src: ./deployment/systemd/void.service
dst: /usr/lib/systemd/system/void.service
type: config
scripts:
postinstall: ./deployment/scripts/postinstall.sh
preremove: ./deployment/scripts/preremove.sh