Skip to content
Snippets Groups Projects
Commit 86999fb2 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

build packages with goreleaser

parent ccd6e569
No related branches found
No related tags found
No related merge requests found
......@@ -8,3 +8,4 @@ config/config.yaml
IP2LOCATION-LITE-DB1.IPV6.BIN
/cmd/test
generateDDL.sh
dist/
project_name: mytoken-server
before:
hooks:
- go mod tidy
builds:
- id: server
main: ./cmd/mytoken-server/main.go
binary: mytoken-server
env:
- CGO_ENABLED=0
goos:
- linux
# - windows
# - darwin
- id: setup
main: ./cmd/mytoken-server/mytoken-setup/setup.go
binary: mytoken-setup
env:
- CGO_ENABLED=0
goos:
- linux
- id: garbage
main: ./cmd/mytoken-server/mytoken-dbGarbageCollector/main.go
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
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
homepage: https://mytoken-doc.data.kit.edu/server/intro
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: A setup utility for the mytoken-server
license: MIT
formats:
- deb
- rpm
release: 1
section: misc
- id: garbage-pkg
package_name: mytoken-server-dbgc
builds:
- garbage
homepage: https://mytoken-doc.data.kit.edu/server/intro
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: A garbage collector for the mytoken database. It deletes expired entries.
license: MIT
formats:
- deb
- rpm
release: 1
section: misc
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
[Unit]
Description=mytoken
After=network.target auditd.service
[Service]
ExecStart=/usr/local/bin/mytoken-server
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/
StandardOutput=inherit
StandardError=inherit
KillMode=process
Restart=always
RestartPreventExitStatus=255
Type=simple
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment