This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
109 lines (99 loc) · 2.36 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
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
project_name: wif-go
env:
- GO111MODULE=on
- CGO_ENABLED=0
# Prevents parallel builds from stepping on each others toes downloading modules
before:
hooks:
- go mod tidy
- make clean-playground
- make build-playground
- make gen-hack
sboms:
- artifacts: binary
builds:
- id: linux
binary: wif-go-linux-{{ .Arch }}
no_unique_dist_dir: true
main: ./cmd/server
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- '7'
tags:
- embed
- id: darwin-amd64
binary: wif-go-darwin-amd64
no_unique_dist_dir: true
main: ./cmd/server
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- darwin
goarch:
- amd64
tags:
- embed
- id: darwin-arm64
binary: wif-go-darwin-arm64
no_unique_dist_dir: true
main: ./cmd/server
flags:
- -trimpath
goos:
- darwin
goarch:
- arm64
tags:
- embed
kos:
- build: linux
base_image: cgr.dev/chainguard/static
main: ./cmd/server
tags:
- '{{ .Tag }}'
- latest
creation_time: '{{.CommitTimestamp}}'
ko_data_creation_time: '{{.CommitTimestamp}}'
sbom: spdx
bare: true
preserve_import_paths: false
base_import_paths: false
platforms:
- all
signs:
# Keyless
- id: wif-go-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}", "--yes"]
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}", "--yes"]
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: allow # remove this when we start publishing non-prerelease or set to auto
draft: true # allow for manual edits
github:
owner: loicsikidi
name: wif-go