forked from launchdarkly/ld-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
73 lines (63 loc) · 1.84 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
project_name: ld-relay
builds:
- env:
- CGO_ENABLED=0
main: .
binary: ld-relay
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}`.
ldflags:
- -s -w -X internal.version.Version={{.Version}}
goos: # Goreleaser's default for this is darwin + linux, but let's be explicit
- darwin
- linux
goarch: # Goreleaser's default for this is 386 + amd64, but let's be explicit
- 386
- amd64
ignore: # Go 1.15+ doesn't support 32-bit Darwin
- goos: darwin
goarch: 386
nfpms:
-
file_name_template: >-
{{ .ConventionalFileName }}
homepage: https://launchdarkly.com/
maintainer: LaunchDarkly <[email protected]>
description: LaunchDarkly Stream Relay Proxy
license: Apache 2.0
vendor: Catamorphic Co.
formats:
- deb
- rpm
contents:
- src: linux/etc/ld-relay.conf
dst: /etc/ld-relay.conf
type: config
- src: linux/etc/init/ld-relay.conf
dst: /etc/init/ld-relay.conf
packager: deb
- src: linux/etc/system/ld-relay.service
dst: /usr/lib/systemd/system/ld-relay.service
packager: rpm
overrides:
deb:
dependencies:
- upstart
rpm:
dependencies:
- systemd
release:
disable: true # this disables releasing *to GitHub*; it will still push to Docker
# (we want Releaser to be responsible for doing all the GitHub release manipulations)
dockers:
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}"
- "launchdarkly/ld-relay:v{{ .Major }}"
- "launchdarkly/ld-relay:latest"
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
skip_push: false
# If your Dockerfile copies files other than the binary itself,
# you should list them here as well.
# extra_files:
# - filename