-
Notifications
You must be signed in to change notification settings - Fork 16
/
.goreleaser.yaml
97 lines (90 loc) · 2.28 KB
/
.goreleaser.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: 1
before:
hooks:
- go mod tidy
builds:
-
id: "nex"
main: "./nex"
binary: "nex"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w --X main.VERSION={{.Version}} -X main.COMMIT={{.Commit}} -X main.BUILDDATE={{.Date}} -X github.com/synadia-io/nex/internal/node.VERSION={{.Version}} -X github.com/synadia-io/nex/internal/node.COMMIT={{.Commit}} -X github.com/synadia-io/nex/internal/node.BUILDDATE={{.Date}}
- -extldflags "-static"
tags:
- netgo
-
id: "nex-debug"
main: "./nex"
binary: "nex"
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w --X main.VERSION={{.Version}}-debug -X main.COMMIT={{.Commit}} -X main.BUILDDATE={{.Date}} -X github.com/synadia-io/nex/internal/node.VERSION={{.Version}}-debug -X github.com/synadia-io/nex/internal/node.COMMIT={{.Commit}} -X github.com/synadia-io/nex/internal/node.BUILDDATE={{.Date}}
- -extldflags "-static"
tags:
- netgo
- debug
-
id: "agent"
main: "./agent/cmd/nex-agent"
binary: "nex-agent"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w --X github.com/synadia-io/nex/agent.VERSION={{.Version}} -X github.com/synadia-io/nex/agent.COMMIT={{.Commit}} -X github.com/synadia-io/nex/agent.BUILDDATE={{.Date}}
- -extldflags "-static"
tags:
- netgo
hooks:
post:
- sudo go run ./nex/. fs --agent {{.Path}} --output rootfs.{{ .Os }}.{{ .Arch }}.ext4.gz
archives:
- id: binaries
format: binary
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
allow_different_binary_count: true
nfpms:
- id: linux_packages
homepage: https://docs.nats.io/using-nats/nex
maintainer: Synadia Communications
description: |-
The NATS execution engine
license: Apache 2.0
builds:
- nex
formats:
- deb
- rpm
checksum:
split: true
release:
make_latest: false
prerelease: auto
extra_files:
- glob: ./rootfs.linux.amd64.ext4.gz
- glob: ./rootfs.linux.arm64.ext4.gz
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"