-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
78 lines (69 loc) · 1.27 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: uniget
builds:
- id: default
main: ./cmd/uniget
binary: uniget
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}}
goos:
- linux
goarch:
- amd64
- arm64
snapshot:
version_template: "{{ incpatch .Version }}-dev.0"
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_checksums.txt'
sboms:
- id: sbom
cmd: syft
args:
- ${artifact}
- --output
- cyclonedx-json
- --file
- $document
documents:
- ${artifact}.cyclonedx.json
archives:
- id: uniget
format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
signs:
- id: cosign
cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
env:
- COSIGN_EXPERIMENTAL=1
args:
- sign-blob
- ${artifact}
- --output-certificate=${certificate}
- --output-signature=${signature}
- --yes
artifacts: all
changelog:
disable: true
release:
github:
owner: uniget-org
name: cli
ids:
- uniget
- sbom
- cosign
name_template: "{{ .Version }}"
mode: replace
prerelease: auto