-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
86 lines (81 loc) · 2.03 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
78
79
80
81
82
83
84
85
86
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
---
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
tags:
- release
goos:
- linux
goarch:
- amd64
- arm
- arm64
- "386"
goarm:
- "5"
- "6"
- "7"
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ incpatch .Version }}-{{ if .IsGitDirty }}dirty{{ else }}SNAPSHOT{{ end }}-g{{ .ShortCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Linux packages
nfpms:
- id: default
maintainer: Filipe Utzig <filipe@gringolito.com>
homepage: https://github.com/gringolito/dnsmasq-manager
description: Dnsmasq DNS / DHCP management external API.
license: Beer-ware
formats:
- deb
- rpm
- apk
- archlinux
bindir: /usr/bin
contents:
- src: api/spec/openapi.yaml
dst: /usr/share/dnsmasq-manager/spec/openapi.yaml
- src: config.yaml.dist
dst: /etc/dnsmasq-manager/config.yaml
type: config
file_info:
mode: 0640
- src: systemd/dnsmasq-manager.service
dst: /etc/systemd/system/dnsmasq-manager.service
type: config
- src: systemd/dnsmasq-manager
dst: /etc/default/dnsmasq-manager
type: config
- src: scripts/generate-jwt-keys.sh
dst: /usr/bin/generate-jwt-keys
file_info:
mode: 0755
scripts:
postinstall: scripts/postinstall.sh
postremove: scripts/postremove.sh
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
report_sizes: true