-
Gabriel Zachmann authoredGabriel Zachmann authored
.goreleaser.yml 5.46 KiB
project_name: mytoken-server
before:
hooks:
- go mod tidy
builds:
- id: server
main: ./cmd/mytoken-server
binary: mytoken-server
env:
- CGO_ENABLED=0
goos:
- linux
# - windows
# - darwin
- id: setup
main: ./cmd/mytoken-server/mytoken-setup
binary: mytoken-setup
env:
- CGO_ENABLED=0
goos:
- linux
- id: migratedb
main: ./cmd/mytoken-server/mytoken-migratedb
binary: mytoken-migratedb
env:
- CGO_ENABLED=0
goos:
- linux
- id: garbage
main: ./cmd/mytoken-server/mytoken-dbGarbageCollector
binary: mytoken-dbgc
env:
- CGO_ENABLED=0
goos:
- linux
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
nfpms:
- id: server-pkg
package_name: mytoken-server
builds:
- server
homepage: https://mytoken-doc.data.kit.edu/server/intro
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: Mytoken is a central web service with the goal to easily obtain OpenID Connect access tokens across devices.
license: MIT
formats:
# - apk
- deb
- rpm
release: 1
section: misc
bindir: /usr/bin
empty_folders:
- /var/log/mytoken
contents:
- src: config/example-config.yaml
dst: /etc/mytoken/example-config.yaml
type: config
- src: config/mytoken.service
dst: /etc/systemd/system/mytoken.service
- id: setup-pkg
package_name: mytoken-server-setup
builds:
- setup