generated from steadybit/extension-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
83 lines (76 loc) · 2.03 KB
/
.goreleaser.yaml
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
project_name: steadybit-extension-http
version: 2
before:
hooks:
- go mod download
- make licenses-report
release:
prerelease: "false"
git:
ignore_tags:
- steadybit-extension-http-*
builds:
- binary: extension-http
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
flags:
- -cover={{ if index .Env "BUILD_WITH_COVERAGE" }}{{ .Env.BUILD_WITH_COVERAGE }}{{ else }}false{{ end }}
- -covermode=atomic
ldflags:
- -s -w
- -X github.com/steadybit/extension-kit/extbuild.ExtensionName={{.ProjectName}}
- -X github.com/steadybit/extension-kit/extbuild.Version={{.Version}}
- -X github.com/steadybit/extension-kit/extbuild.Revision={{.Commit}}
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-{{ .Timestamp }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- package_name: "steadybit-extension-http"
file_name_template: "{{ .ConventionalFileName }}"
formats:
- deb
- rpm
maintainer: "Johannes Edmeier <johannes.edmeier@steadybit.com>"
description: |
Steadybit Extension HTTP
vendor: "steadybit GmbH"
homepage: "https://steadybit.com"
license: "Steadybit license"
builds:
- steadybit-extension-http
bindir: /opt/steadybit/extension-http
contents:
- src: ./linuxpkg/systemd
dst: /usr/lib/systemd/system
- src: ./linuxpkg/init.d
dst: /etc/init.d
- src: ./linuxpkg/config
dst: /etc
type: config
- src: ./licenses
dst: /opt/steadybit/extension-http/licenses
scripts:
preinstall: ./linuxpkg/scripts/preinstall.sh
postinstall: ./linuxpkg/scripts/postinstall.sh
preremove: ./linuxpkg/scripts/preremove.sh
postremove: ./linuxpkg/scripts/postremove.sh
rpm:
signature:
key_file: ./gpg.key
deb:
signature:
key_file: ./gpg.key