Select Git revision
setup-helper.sh
.goreleaser-release.yml 7.37 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 }}'
- id: notifier-server
main: ./cmd/mytoken-server/mytoken-notifier-server
binary: mytoken-notifier-server
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{ if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}32-bit{{- else if eq .Arch "amd64" }}64-bit{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
nfpms:
- id: server-pkg
package_name: mytoken-server
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_
{{- if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}
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"