-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.goreleaser.yaml
59 lines (55 loc) · 1.16 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
version: 2
gomod:
proxy: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
report_sizes: true
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- windows
- linux
- freebsd
- netbsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X github.com/LeSuisse/vault-gpg-plugin/version.GitCommit={{.Commit}}
hooks:
post:
- cmd: sh -c 'sha256sum "{{ base .Path }}" > "{{ base .Path }}".sha256sum'
dir: "{{ dir .Path }}"
sboms:
- artifacts: binary
archives:
- format: zip
name_template: "{{ .Os }}_{{ .Arch }}"
files:
- README.md
- LICENSE
- docs/*
- src: "{{ .ArtifactPath }}.sha256sum"
dst: .
strip_parent: true
checksum:
name_template: 'checksums.txt'
signs:
- id: cosign-keyless
signature: "${artifact}.bundle"
cmd: cosign
args: ["sign-blob", "--bundle", "${signature}", "--yes", "${artifact}"]
artifacts: all
snapshot:
version_template: "{{ incpatch .Version }}-next"
release:
draft: true