-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
124 lines (111 loc) · 2.96 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
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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
# Build for the `oriond` daemon
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm
- arm64
- riscv64
main: ./bin/oriond
id: "oriond"
binary: oriond
# Build for the `orion-registry` daemon
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm
- arm64
- riscv64
main: ./bin/registry
id: "registry"
binary: orion-registry
archives: []
nfpms:
- id: orion-backbone
package_name: orion-backbone
file_name_template: "{{ .ConventionalFileName }}"
vendor: Matthieu Pignolet
homepage: https://mpgn.dev/
maintainer: Matthieu Pignolet <[email protected]>
license: Apache 2.0
formats:
- apk
- deb
- rpm
- archlinux
umask: 0o002
dependencies:
- wireguard
- frr
- frr-pythontools
bindir: /usr/bin
scripts:
preinstall: ./packaging/preinstall.sh
postinstall: ./packaging/postinstall.sh
# Version Release.
release: 1
# Section.
section: default
# Priority.
priority: extra
meta: false
# Contents to add to the package.
# GoReleaser will automatically add the binaries.
contents:
# Service files
- src: packaging/orion-registry.service
dst: /etc/systemd/system/orion-registry.service
type: "config"
- src: packaging/oriond.service
dst: /etc/systemd/system/oriond.service
type: "config"
# Default files
- src: packaging/oriond
dst: /etc/default/oriond
type: "config"
- src: packaging/orion-registry
dst: /etc/default/orion-registry
type: "config"
- src: packaging/frr.conf.tmpl
dst: /etc/oriond/frr.conf.tmpl
type: "config"
# Root CA
- src: packaging/ca.crt
dst: /etc/oriond/
type: "config"
- src: packaging/daemons
dst: /etc/frr/daemons
type: "config"
- src: packaging/sysctl.conf
dst: /etc/sysctl.d/00-orion-routing.conf
type: "config"
# Custom configuration applied only to the RPM packager.
rpm:
summary: Orion Backbone is the backbone for the Orion Network
# Custom configuration applied only to the Deb packager.
deb:
fields:
Bugs: https://github.com/Orion-network-dev/orion-backbone
apk:
signature:
key_name: origin
archlinux:
pkgbase: orion-registry
packager: Matthieu Pignolet <[email protected]>