This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
forked from chainguard-dev/incert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
65 lines (54 loc) · 1.46 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
project_name: incert
version: 2
env:
- CGO_ENABLED=0
- COSIGN_YES=true
# Prevents parallel builds from stepping on eachothers toes downloading modules
before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
gomod:
proxy: true
sboms:
- artifacts: binary
builds:
- id: incert
binary: incert-{{ .Os }}-{{ .Arch }}
no_unique_dist_dir: true
main: .
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
signs:
# Keyless
- id: keyless
signature: "${artifact}-keyless.sig"
certificate: "${artifact}-keyless.pem"
cmd: cosign
args: ["sign-blob", "--output-signature", "${artifact}-keyless.sig", "--output-certificate", "${artifact}-keyless.pem", "${artifact}"]
artifacts: binary
- id: checksum-keyless
signature: "${artifact}-keyless.sig"
certificate: "${artifact}-keyless.pem"
cmd: cosign
args: ["sign-blob", "--output-signature", "${artifact}-keyless.sig", "--output-certificate", "${artifact}-keyless.pem", "${artifact}"]
artifacts: checksum
archives:
- format: binary
name_template: "{{ .Binary }}"
allow_different_binary_count: true
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
release:
prerelease: auto
draft: true # allow for manual edits