2021-10-08 14:39:31 +02:00
|
|
|
# SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2021-05-18 09:51:42 +02:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
# refreshes the tailwind css
|
2021-05-31 15:10:02 +02:00
|
|
|
- go generate ./...
|
2021-05-18 09:51:42 +02:00
|
|
|
|
|
|
|
builds:
|
2022-11-11 18:19:40 +01:00
|
|
|
- id: go-ssb-room-linux-amd64
|
|
|
|
env:
|
2021-05-18 09:51:42 +02:00
|
|
|
# needed for sqlite
|
|
|
|
- CGO_ENABLED=1
|
2021-05-31 15:10:02 +02:00
|
|
|
main: ./cmd/server
|
2021-05-18 09:51:42 +02:00
|
|
|
binary: go-ssb-room
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
|
2022-11-11 18:19:40 +01:00
|
|
|
- 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
|
|
|
|
|
2021-05-18 09:51:42 +02:00
|
|
|
gomod:
|
|
|
|
env:
|
2022-11-11 18:19:40 +01:00
|
|
|
- GOPROXY=https://proxy.golang.org
|
2021-05-18 09:51:42 +02:00
|
|
|
- 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
|
2021-05-31 14:39:46 +02:00
|
|
|
maintainer: Go-SSB-Room NGI-Pointer Team <go-ssb-room@ssb-ngi-pointer.email>
|
2021-05-18 09:51:42 +02:00
|
|
|
homepage: https://scuttlebutt.nz
|
|
|
|
description: SSB Room v2 server, written in Go
|
|
|
|
license: MIT
|
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
suggests:
|
|
|
|
- ngingx
|
|
|
|
- certbot
|
|
|
|
contents:
|
2022-11-11 18:19:40 +01:00
|
|
|
- dst: /var/log/go-ssb-room
|
|
|
|
type: dir
|
|
|
|
|
2021-05-31 15:24:10 +03:00
|
|
|
- src: docs/files/example-systemd.service
|
2021-05-18 09:51:42 +02:00
|
|
|
dst: /etc/systemd/system/go-ssb-room.service
|
|
|
|
type: "config|noreplace"
|
|
|
|
|
2021-05-31 15:24:10 +03:00
|
|
|
- src: docs/files/example-nginx.conf
|
2021-05-18 09:51:42 +02:00
|
|
|
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?
|
2021-05-31 15:24:10 +03:00
|
|
|
- src: README.md
|
2021-05-18 09:51:42 +02:00
|
|
|
dst: /usr/share/go-ssb-room/README.md
|
2021-05-31 15:24:10 +03:00
|
|
|
|
2021-05-18 09:51:42 +02:00
|
|
|
# TODO: add more docs we want?
|
|
|
|
scripts:
|
2021-05-31 15:24:10 +03:00
|
|
|
postinstall: docs/files/debian-postinstall.sh
|
|
|
|
preremove: docs/files/debian-preremove.sh
|
2021-05-18 09:51:42 +02:00
|
|
|
|
|
|
|
archives:
|
2022-11-11 18:19:40 +01:00
|
|
|
- id: go-ssb-room
|
2021-05-18 09:51:42 +02:00
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
2021-05-31 15:24:10 +03:00
|
|
|
|
2021-05-18 09:51:42 +02:00
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|