This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
82 lines (71 loc) · 1.82 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
# 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:
- env:
# needed for sqlite
- CGO_ENABLED=1
main: ./cmd/server
binary: go-ssb-room
goos:
- linux
goarch:
- amd64
gomod:
# sum.golang.org somehow doesn't handle replace as expected. TODO: file issue
proxy: false
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
# for .deb packages
# see: https://goreleaser.com/customization/nfpm/
nfpms:
- id: go-ssb-room
package_name: go-ssb-room
replacements:
linux: Linux
amd64: x86_64
vendor: Secure-Scuttlebutt Community
maintainer: Go-SSB-Room NGI-Pointer Team <go-ssb-room@ssb-ngi-pointer.email>
homepage: https://scuttlebutt.nz
description: SSB Room v2 server, written in Go
license: MIT
formats:
- deb
suggests:
- ngingx
- certbot
empty_folders:
- /var/log/go-ssb-room
contents:
- 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:
- replacements:
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'