-
Notifications
You must be signed in to change notification settings - Fork 11
/
.goreleaser.yaml
151 lines (144 loc) · 3.99 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
builds:
- id: &build_id_ssh_inscribe ssh-inscribe
env:
- CGO_ENABLED=0
main: ./cmd/ssh-inscribe
binary: ssh-inscribe
ldflags:
- -X github.com/aakso/ssh-inscribe/internal/globals.version={{ .Version }}
- -X github.com/aakso/ssh-inscribe/internal/globals.confDir=/etc/ssh-inscribe
- -X github.com/aakso/ssh-inscribe/internal/globals.varDir=/var/lib/ssh-inscribe
goos: [darwin, linux]
goarch: [amd64, arm64]
ignore:
- goos: linux
goarch: arm64
- id: &build_id_sshi sshi
env:
- CGO_ENABLED=0
main: ./cmd/sshi
binary: sshi
ldflags:
- -X github.com/aakso/ssh-inscribe/internal/globals.version={{ .Version }}
goos: [darwin, linux, windows]
goarch: [amd64, arm64]
ignore:
- goos: linux
goarch: arm64
- goos: windows
goarch: arm64
archives:
- format: binary
name_template: >-
{{ .Binary }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
nfpms:
- id: ssh-inscribe
package_name: ssh-inscribe
file_name_template: "{{ .ConventionalFileName }}"
builds: [*build_id_ssh_inscribe]
vendor: &vendor Anton Aksola
homepage: &homepage https://github.com/aakso/ssh-inscribe
maintainer: &maintainer Anton Aksola <[email protected]>
description: SSH CA server
license: &license Apache-2.0
section: §ion net
formats: &formats [deb, rpm]
contents:
- src: etc/ssh-inscribe.service
dst: /usr/lib/systemd/system/ssh-inscribe.service
- dst: /etc/ssh-inscribe
type: dir
- src: etc/auth_users.yaml
dst: /etc/ssh-inscribe/auth_users.yaml
type: config|noreplace
file_info:
mode: 0600
owner: sshi
- dst: /var/lib/ssh-inscribe
type: dir
file_info:
mode: 0775
group: sshi
- src: etc/completion-loader.bash
dst: /usr/share/bash-completion/completions/ssh-inscribe
- src: LICENSE
dst: /usr/share/doc/ssh-inscribe/copyright
packager: deb
- src: LICENSE
dst: /usr/share/doc/ssh-inscribe/LICENSE
type: license
packager: rpm
- src: README.md
dst: /usr/share/doc/ssh-inscribe/README.md
packager: deb
- src: README.md
dst: /usr/share/doc/ssh-inscribe/README.md
type: readme
packager: rpm
scripts:
preinstall: etc/server-pre-install.sh
postinstall: etc/server-post-install.sh
preremove: etc/server-pre-remove.sh
overrides:
deb:
dependencies:
- openssh-client
rpm:
dependencies:
- /usr/bin/ssh-agent
rpm:
group: &rpm_group Applications/Internet
- id: sshi
package_name: sshi
file_name_template: "{{ .ConventionalFileName }}"
builds: [*build_id_sshi]
vendor: *vendor
homepage: *homepage
maintainer: *maintainer
description: SSH CA client
license: *license
section: *section
formats: *formats
umask: 0o022
contents:
- src: etc/completion-loader.bash
dst: /usr/share/bash-completion/completions/sshi
- src: LICENSE
dst: /usr/share/doc/sshi/copyright
packager: deb
- src: LICENSE
dst: /usr/share/doc/sshi/LICENSE
type: license
packager: rpm
- src: README.md
dst: /usr/share/doc/sshi/README.md
packager: deb
- src: README.md
dst: /usr/share/doc/sshi/README.md
type: readme
packager: rpm
overrides:
deb:
dependencies:
- openssh-client
rpm:
dependencies:
- /usr/bin/ssh-agent
rpm:
group: *rpm_group
checksum:
name_template: checksums.txt
release:
footer: >-
apt and dnf/yum package repositories are available at
[Packagecloud](https://packagecloud.io/aakso/ssh-inscribe).
changelog:
use: github
filters:
exclude:
- ^Merge pull request