-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
70 lines (68 loc) · 2.33 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
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- "-s -w -X github.com/leandro-lugaresi/message-cannon/cmd.version={{.Version}}"
- " -X github.com/leandro-lugaresi/message-cannon/cmd.commit={{.Commit}}"
- " -X github.com/leandro-lugaresi/message-cannon/cmd.date={{.Date}}"
archive:
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
nfpm:
name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/leandro-lugaresi/message-cannon
description: Consume rabbitMQ messages and send to any cli program
maintainer: Leandro Lugaresi <[email protected]>
license: MIT
vendor: Leandro Lugaresi
formats:
- deb
- rpm
dependencies:
- git
recommends:
- rpm
snapcraft:
name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
summary: Consume rabbitMQ messages and send to any cli program
description: Consume rabbitMQ messages and send to any cli program
grade: stable
confinement: strict
apps:
# The name of the app must be the same name as the binary built.
drumroll:
# If your app requires extra permissions to work outside of its default
# confined space, delcare them here.
# You can read the documentation about the available plugs and the
# things they allow:
# https://snapcraft.io/docs/reference/interfaces).
plugs: ["home", "network"]
# If you want your app to be autostarted and to always run in the
# background, you can make it a simple daemon.
daemon: simple
dockers:
# Template of the docker tag. Defaults to `{{ .Version }}`. Other allowed
# fields are `.Tag`, `.Major`, `.Minor` and `.Patch` and
# `.Env.VARIABLE_NAME`.
- image_templates:
- "leandrolugaresi/message-cannon:{{ .Version }}"
- "leandrolugaresi/message-cannon:v{{ .Major }}"
- "leandrolugaresi/message-cannon:v{{ .Major }}.{{ .Minor }}"
- "leandrolugaresi/message-cannon:latest"