Select Git revision
.goreleaser.yml
.goreleaser.yml 4.94 KiB
project_name: mytoken-server
before:
hooks:
- go mod tidy
dist: results
builds:
- id: server
main: ./cmd/mytoken-server
binary: mytoken-server
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: setup
main: ./cmd/mytoken-server/mytoken-setup
binary: mytoken-setup
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: migratedb
main: ./cmd/mytoken-server/mytoken-migratedb
binary: mytoken-migratedb
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- replacements:
darwin: macOS
386: 32-bit
amd64: 64-bit
format_overrides:
- goos: windows
format: zip
nfpms:
- id: server-pkg
package_name: mytoken-server
replacements:
386: i386
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
builds:
- server
homepage: https://mytoken-docs.data.kit.edu/server
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:
- deb
- rpm
release: "1"
section: misc
bindir: /usr/bin
contents:
- src: config/example-config.yaml
dst: /etc/mytoken/example-config.yaml
type: config
- src: config/mytoken.service
dst: /etc/systemd/system/mytoken.service
- dst: /var/log/mytoken
type: dir