forked from launchdarkly/ld-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
59 lines (50 loc) · 1.3 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
project_name: ld-relay
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/ld-relay/
binary: ld-relay
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- -s -w -X internal.version.Version={{.Version}}
git:
short_hash: true
nfpm:
name_template: "{{ .ProjectName }}_{{ .Version }}.{{ .Commit }}_{{ .Arch }}"
homepage: https://launchdarkly.com/
maintainer: LaunchDarkly <[email protected]>
description: LaunchDarkly Stream Relay Proxy
license: Apache 2.0
vendor: Catamorphic Co.
formats:
- deb
- rpm
replacements:
386: i386
config_files:
"linux/etc/ld-relay.conf": "/etc/ld-relay.conf"
overrides:
deb:
dependencies:
- upstart
files:
"linux/etc/init/ld-relay.conf": "/etc/init/ld-relay.conf"
rpm:
dependencies:
- systemd
files:
"linux/etc/system/ld-relay.service": "/usr/lib/systemd/system/ld-relay.service"
dockers:
- image: launchdarkly/ld-relay
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
skip_push: false
tag_templates:
- "{{ .Tag }}"
- "v{{ .Major }}"
- latest
# If your Dockerfile copies files other than the binary itself,
# you should list them here as well.
extra_files:
- docker-entrypoint.sh