-
Notifications
You must be signed in to change notification settings - Fork 27
/
.goreleaser.yml
75 lines (68 loc) · 1.53 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
builds:
-
ldflags: -s -w -X github.com/bpineau/katafygio/cmd.version={{.Version}}
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64
- "386"
hooks:
post: make man
before:
hooks:
- go mod download
release:
# don't autopublish
draft: true
sign:
artifacts: checksum
archives:
- id: katafygio
format: binary
changelog:
filters:
exclude:
- Merge
dockers:
- image_templates:
- "bpineau/katafygio:latest"
- "bpineau/katafygio:{{ .Tag }}"
goos: linux
goarch: amd64
dockerfile: assets/Dockerfile.goreleaser
skip_push: true
nfpms:
-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
homepage: https://github.com/bpineau/katafygio
description: Discover and continuously backup Kubernetes objets as yaml files in git
maintainer: Benjamin Pineau <ben.pineau@gmail.com>
license: MIT
bindir: /usr/bin
vendor: Benjamin Pineau
formats:
- deb
- rpm
dependencies:
- git
config_files:
"./assets/katafygio.yaml": "/etc/katafygio/katafygio.yaml"
files:
"./katafygio.8.gz": "/usr/share/man/man8/katafygio.8.gz"
overrides:
rpm:
replacements:
amd64: x86_64
386: i686
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
deb:
replacements:
386: i386
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"