-
Notifications
You must be signed in to change notification settings - Fork 80
/
.goreleaser.yml
83 lines (83 loc) · 2.01 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
76
77
78
79
80
81
82
83
env:
- GO111MODULE=on
- CGO_ENABLED=1
- GOFLAGS=-mod=vendor
- GOPROXY=off
builds:
- id: gokeyless-darwin
binary: gokeyless
env:
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
main: ./cmd/gokeyless
flags:
- -tags=pkcs11,netgo
ldflags:
- -s -w -X main.version={{.Version}}
- id: gokeyless-linux
binary: gokeyless
goos:
- linux
goarch:
- amd64
main: ./cmd/gokeyless
flags:
- -tags=pkcs11,netgo
ldflags:
- -s -w -X main.version={{.Version}}
archives:
- format: binary
release:
github:
owner: cloudflare
name: gokeyless
prerelease: auto
changelog:
sort: asc
nfpms:
- id: keyless-nfpm
package_name: gokeyless
file_name_template: "gokeyless_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
homepage: https://github.com/cloudflare/gokeyless
maintainer: SSL Cloudflare <[email protected]>
description: Go implementation of keyless protocol
license: Cloudflare
formats:
- deb
- rpm
bindir: /usr/bin # explicitly defining the default
overrides:
deb:
scripts:
preinstall: pkg/debian/before-install.sh
postinstall: pkg/debian/after-install.sh
preremove: pkg/debian/before-remove.sh
rpm:
scripts:
preinstall: pkg/centos/before-install.sh
postinstall: pkg/centos/after-install.sh
preremove: pkg/centos/before-remove.sh
contents:
- src: pkg/gokeyless.service
dst: /lib/systemd/system/gokeyless.service
file_info:
mode: 0644
- src: pkg/gokeyless.sysv
dst: /etc/init.d/gokeyless
file_info:
mode: 0755
type: config
- src: pkg/keyless_cacert.pem
dst: /etc/keyless/keyless_cacert.pem
file_info:
mode: 0644
type: config
- src: pkg/gokeyless.yaml
dst: /etc/keyless/gokeyless.yaml
file_info:
mode: 0600
type: "config|noreplace"