-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yml
More file actions
157 lines (145 loc) · 4.48 KB
/
.goreleaser.yml
File metadata and controls
157 lines (145 loc) · 4.48 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: 2
builds:
- id: gobfd
main: ./cmd/gobfd
binary: gobfd
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/dantte-lp/gobfd/internal/version.Version={{.Version}}
- -X github.com/dantte-lp/gobfd/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/dantte-lp/gobfd/internal/version.BuildDate={{.Date}}
- id: gobfdctl
main: ./cmd/gobfdctl
binary: gobfdctl
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/dantte-lp/gobfd/internal/version.Version={{.Version}}
- -X github.com/dantte-lp/gobfd/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/dantte-lp/gobfd/internal/version.BuildDate={{.Date}}
- id: gobfd-haproxy-agent
main: ./cmd/gobfd-haproxy-agent
binary: gobfd-haproxy-agent
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/dantte-lp/gobfd/internal/version.Version={{.Version}}
- -X github.com/dantte-lp/gobfd/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/dantte-lp/gobfd/internal/version.BuildDate={{.Date}}
- id: gobfd-exabgp-bridge
main: ./cmd/gobfd-exabgp-bridge
binary: gobfd-exabgp-bridge
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/dantte-lp/gobfd/internal/version.Version={{.Version}}
- -X github.com/dantte-lp/gobfd/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/dantte-lp/gobfd/internal/version.BuildDate={{.Date}}
upx:
- enabled: true
compress: best
lzma: true
goos: [linux]
goarch: [amd64, arm64]
archives:
- id: default
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- src: configs/gobfd.example.yml
dst: etc/gobfd/gobfd.example.yml
- src: deployments/systemd/gobfd.service
dst: lib/systemd/system/gobfd.service
checksum:
name_template: checksums.txt
changelog:
disable: true
nfpms:
- id: packages
package_name: gobfd
vendor: dantte-lp
homepage: https://github.com/dantte-lp/gobfd
maintainer: dantte-lp
description: BFD protocol daemon implementing RFC 5880/5881 for network failure detection.
license: Apache-2.0
formats:
- deb
- rpm
bindir: /usr/local/bin
contents:
- src: configs/gobfd.example.yml
dst: /etc/gobfd/gobfd.yml
type: config|noreplace
- src: deployments/systemd/gobfd.service
dst: /lib/systemd/system/gobfd.service
scripts:
postinstall: deployments/nfpm/postinstall.sh
preremove: deployments/nfpm/preremove.sh
overrides:
deb:
dependencies:
- systemd
rpm:
dependencies:
- systemd
dockers:
- id: gobfd-amd64
goos: linux
goarch: amd64
ids: [gobfd, gobfdctl, gobfd-haproxy-agent, gobfd-exabgp-bridge]
image_templates:
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-amd64"
dockerfile: deployments/docker/Containerfile.release
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title=gobfd"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.source=https://github.com/dantte-lp/gobfd"
- id: gobfd-arm64
goos: linux
goarch: arm64
ids: [gobfd, gobfdctl, gobfd-haproxy-agent, gobfd-exabgp-bridge]
image_templates:
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-arm64"
dockerfile: deployments/docker/Containerfile.release
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.title=gobfd"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.source=https://github.com/dantte-lp/gobfd"
docker_manifests:
- name_template: "ghcr.io/dantte-lp/gobfd:{{ .Version }}"
image_templates:
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-amd64"
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-arm64"
- name_template: "ghcr.io/dantte-lp/gobfd:latest"
image_templates:
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-amd64"
- "ghcr.io/dantte-lp/gobfd:{{ .Version }}-arm64"