forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.goreleaser.yml
More file actions
140 lines (125 loc) · 3.21 KB
/
.goreleaser.yml
File metadata and controls
140 lines (125 loc) · 3.21 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: 2
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/confd
binary: confd
env:
- CGO_ENABLED=0
ldflags: -s -w -X main.Version={{ .Version }} -X main.GitSHA={{ .ShortCommit }}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 7
ignore:
- goos: windows
goarch: arm
archives:
- name_template: '{{.ProjectName}}-{{.Tag}}-{{.Os}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}'
formats: [tar.gz]
format_overrides:
- goos: windows
formats: [zip]
files:
- none*
nfpms:
- id: confd
package_name: confd
vendor: abtreece
homepage: https://github.com/abtreece/confd
maintainer: Andrew Treece <abtreece@users.noreply.github.com>
description: Lightweight configuration management tool
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
# Package dependencies
dependencies:
- systemd
contents:
# Systemd service file
- src: ./packaging/confd.service
dst: /usr/lib/systemd/system/confd.service
file_info:
mode: 0644
# Default config file (won't overwrite on upgrade)
- src: ./packaging/confd.toml.default
dst: /etc/confd/confd.toml
type: config|noreplace
file_info:
mode: 0644
# Environment file for Debian/Ubuntu
- src: ./packaging/confd.default
dst: /etc/default/confd
type: config|noreplace
file_info:
mode: 0644
packager: deb
# Environment file for RHEL/Fedora
- src: ./packaging/confd.default
dst: /etc/sysconfig/confd
type: config|noreplace
file_info:
mode: 0644
packager: rpm
# Create config directories
- dst: /etc/confd/conf.d
type: dir
file_info:
mode: 0755
- dst: /etc/confd/templates
type: dir
file_info:
mode: 0755
- dst: /var/lib/confd
type: dir
file_info:
mode: 0755
scripts:
postinstall: ./packaging/scripts/postinstall.sh
preremove: ./packaging/scripts/preremove.sh
rpm:
group: System Environment/Daemons
compression: gzip
deb:
lintian_overrides:
- statically-linked-binary
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
version_template: "{{ .Tag }}-dev"
changelog:
disable: true
release:
prerelease: auto
dockers_v2:
- images:
- "abtreece/confd"
- "ghcr.io/abtreece/confd"
platforms:
- linux/amd64
- linux/arm64
dockerfile: docker/Dockerfile
tags:
- "{{ .Tag }}"
- "{{ if not .Prerelease }}latest{{ end }}"
labels:
org.opencontainers.image.title: confd
org.opencontainers.image.description: Lightweight configuration management tool
org.opencontainers.image.url: https://github.com/abtreece/confd
org.opencontainers.image.source: https://github.com/abtreece/confd
org.opencontainers.image.version: "{{ .Version }}"
org.opencontainers.image.created: "{{ .Date }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.licenses: MIT