-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
75 lines (67 loc) · 1.82 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: github.com/joshuar/cf-ddns
package_name: cf-ddns
vendor: github.com/joshuar
homepage: https://github.com/joshuar/cf-ddns
maintainer: Josh Rich <[email protected]>
description: A Dynamic DNS client for Cloudflare.
license: MIT
release: "1"
formats:
- deb
- rpm
# Section.
section: default
# Priority.
priority: extra
# Contents to add to the package.
# GoReleaser will automatically add the binaries.
contents:
# Basic file that applies to all packagers
- src: configs/cf-ddns.yml
dst: /etc/cf-ddns/cf-ddns.yml
type: "config|noreplace"
# Daemon mode systemd service
- src: systemd/cf-ddns.service
dst: /usr/lib/systemd/system/cf-ddns.service
type: config
# One-shot mode with systemd timer
- src: systemd/cf-ddns-oneshot.service
dst: /usr/lib/systemd/system/cf-ddns-oneshot.service
type: config
- src: systemd/cf-ddns-oneshot.timer
dst: /usr/lib/systemd/system/cf-ddns-oneshot.timer
type: config
# scripts:
# preinstall: "scripts/preinstall.sh"
# postinstall: "scripts/postinstall.sh"
# preremove: "scripts/preremove.sh"
# postremove: "scripts/postremove.sh"