2023-09-28 22:25:34 +02:00
project_name : edge
before :
hooks :
- go mod tidy
- go generate ./...
builds :
- id : edge-cli
binary : edge-cli
env :
- CGO_ENABLED=0
ldflags :
- -s
- -w
gcflags :
- -trimpath="${PWD}"
asmflags :
- -trimpath="${PWD}"
goos :
- linux
goarch :
- amd64
main : ./cmd/cli
- id : storage-server
binary : storage-server
env :
- CGO_ENABLED=0
ldflags :
- -s
- -w
gcflags :
- -trimpath="${PWD}"
asmflags :
- -trimpath="${PWD}"
goos :
- linux
goarch :
- amd64
main : ./cmd/storage-server
archives :
- id : edge-cli
builds : [ "edge-cli" ]
name_template : 'edge-cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files :
- README.md
- CHANGELOG.md
- id : storage-server
builds : [ "storage-server" ]
name_template : 'storage-server_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files :
- README.md
- CHANGELOG.md
checksum :
name_template : 'checksums.txt'
snapshot :
name_template : "{{ .Version }}"
changelog :
sort : asc
filters :
exclude :
- '^docs:'
- '^test:'
nfpms :
- id : edge-cli
builds :
- "edge-cli"
package_name : edge-cli
homepage : https://forge.cadoles.com/arcad/edge
maintainer : William Petit <wpetit@cadoles.com>
description : |-
license : AGPL-3.0
formats :
- apk
- deb
- id : storage-server
builds :
- "storage-server"
package_name : storage-server
homepage : https://forge.cadoles.com/arcad/edge
maintainer : William Petit <wpetit@cadoles.com>
description : |-
license : AGPL-3.0
formats :
- apk
- deb
2023-10-02 23:05:18 +02:00
contents :
# Deb
- src : misc/packaging/systemd/storage-server.systemd.service
dst : /usr/lib/systemd/system/storage-server.service
packager : deb
- src : misc/packaging/systemd/storage-server.env
dst : /etc/storage-server/environ
type : config|noreplace
file_info :
mode : 0640
packager : deb
# APK
- src : misc/packaging/openrc/storage-server.openrc.sh
dst : /etc/init.d/storage-server
file_info :
mode : 0755
packager : apk
- src : misc/packaging/openrc/storage-server.conf
type : config|noreplace
dst : /etc/conf.d/storage-server
file_info :
mode : 0640
packager : apk
- dst : /var/lib/storage-server
type : dir
file_info :
mode : 0700
packager : apk
scripts :
postinstall : "misc/packaging/common/postinstall-storage-server.sh"