-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.goreleaser.yml
55 lines (54 loc) · 1.22 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
version: 2
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- "-s -w -extldflags '-static' -X github.com/signmykeyio/signmykey/cmd.versionString={{.Version}}"
targets:
- linux_386
- linux_amd64
- linux_arm
- linux_arm64
- windows_amd64
- darwin_amd64
- darwin_arm64
dist: bin
archives:
- format: binary
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "checksums.txt"
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
changelog:
disable: true
nfpms:
- maintainer: Pablo RUTH <[email protected]>
homepage: https://github.com/signmykeyio/signmykey
vendor: signmykey.io
description: An automated SSH Certificate Authority
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
rpm:
group: admin
overrides:
rpm:
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
deb:
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"