forked from ssbc/go-ssb-room
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
150 lines (133 loc) · 3.1 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
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
# SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
#
# SPDX-License-Identifier: CC0-1.0
before:
hooks:
- go mod tidy
# refreshes the tailwind css
- go generate ./...
builds:
- id: go-ssb-room-linux-amd64
env:
# needed for sqlite
- CGO_ENABLED=1
main: ./cmd/server
binary: go-ssb-room
goos:
- linux
goarch:
- amd64
- id: go-ssb-room-insert-user-linux-amd64
env:
# needed for sqlite
- CGO_ENABLED=1
main: ./cmd/insert-user
binary: go-ssb-room-insert-user
goos:
- linux
goarch:
- amd64
- id: go-ssb-room-linux-arm64
env:
# needed for sqlite
- CGO_ENABLED=1
# cross-compilation
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
main: ./cmd/server
binary: go-ssb-room
goos:
- linux
goarch:
- arm64
- id: go-ssb-room-insert-user-linux-arm64
env:
# needed for sqlite
- CGO_ENABLED=1
# cross-compilation
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
main: ./cmd/insert-user
binary: go-ssb-room-insert-user
goos:
- linux
goarch:
- arm64
- id: go-ssb-room-linux-armhf
env:
# needed for sqlite
- CGO_ENABLED=1
# cross-compilation
- CC=arm-linux-gnueabihf-gcc
- CXX=arm-linux-gnueabihf--g++
main: ./cmd/server
binary: go-ssb-room
goos:
- linux
goarch:
- arm
goarm:
- 6
- 7
- id: go-ssb-room-insert-user-linux-armhf
env:
# needed for sqlite
- CGO_ENABLED=1
# cross-compilation
- CC=arm-linux-gnueabihf-gcc
- CXX=arm-linux-gnueabihf--g++
main: ./cmd/insert-user
binary: go-ssb-room-insert-user
goos:
- linux
goarch:
- arm
goarm:
- 6
- 7
gomod:
env:
- GOPROXY=https://proxy.golang.org
- GOSUMDB=sum.golang.org
# for .deb packages
# see: https://goreleaser.com/customization/nfpm/
nfpms:
- id: go-ssb-room
package_name: go-ssb-room
vendor: Secure-Scuttlebutt Community
maintainer: Go-SSB-Room NGI-Pointer Team <[email protected]>
homepage: https://scuttlebutt.nz
description: SSB Room v2 server, written in Go
license: MIT
formats:
- deb
suggests:
- ngingx
- certbot
contents:
- dst: /var/log/go-ssb-room
type: dir
- src: docs/files/example-systemd.service
dst: /etc/systemd/system/go-ssb-room.service
type: "config|noreplace"
- src: docs/files/example-nginx.conf
dst: /usr/share/go-ssb-room/nginx-example.conf
# TODO: maybe (automatically) turn docs/README.md into a .txt with the links at the bottom?
- src: README.md
dst: /usr/share/go-ssb-room/README.md
# TODO: add more docs we want?
scripts:
postinstall: docs/files/debian-postinstall.sh
preremove: docs/files/debian-preremove.sh
archives:
- id: go-ssb-room
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'