-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
92 lines (91 loc) · 2.03 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- public/built/*
nfpms:
-
id: goEDMS
package_name: goEDMS
vendor: deranjer
maintainer: deranjer
homepage: https://github.com/deranjer/goEDMS
description: Simple EDMS server and react client
license: MIT
formats:
- deb
- rpm
dependencies:
- imagemagick
- tesseract-ocr
bindir: /opt/goEDMS
empty_folders:
- /opt/goEDMS/
- /opt/goEDMS/public/
- /opt/goEDMS/public/built/
files:
"dist-specific-files/Linux-systemd/goEDMS.service": "/etc/systemd/system/goEDMS.service"
"public/built/**": "/opt/goEDMS/public/built"
"LICENSE": "/opt/goEDMS/LICENSE"
"README.md": "/opt/goEDMS/README.md"
config_files:
"dist-specific-files/Linux/serverConfig.toml": "/opt/goEDMS/serverConfig.toml"
scripts:
preinstall: "dist-specific-files/nfpms/pre-install.sh"
postinstall: "dist-specific-files/nfpms/post-install.sh"
postremove: "dist-specific-files/nfpms/post-remove.sh"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
draft: true
prerelease: true
# dockers:
# -
# goos: linux
# goarch: amd64
# binaries:
# - goEDMS
# image_templates:
# - "deranjer/goedms:latest"
# - "deranjer/goedms:v{{ .Major }}.{{ .Minor }}"
# dockerfile: Dockerfile
# extra_files:
# - LICENSE
# - README.md
# - public/built/