-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
69 lines (57 loc) · 1.27 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
project_name: raspi-fan-control
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- id: fan
goos:
- linux
goarch:
- arm
goarm:
- 7
env:
- CGO_ENABLED=0
ldflags:
- "{{ .Env.LDFLAGS }}"
signs:
- id: fan
signature: "${artifact}.sig"
cmd: cosign
args: ["sign-blob", "--output", "${artifact}.sig", "--key", "./cosign.key", "${artifact}"]
artifacts: binary
dockers:
- id: fan
image_templates:
- "ghcr.io/cpanato/fan-control:{{ .Version }}"
use: buildx
dockerfile: Dockerfile
goos: linux
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/7"
docker_signs:
- artifacts: all
args: [ "sign", "--key", "./cosign.key", "${artifact}" ]
archives:
- format: binary
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: cpanato
name: raspi-fan-control
footer: |
Signed with `cosign` to verify:
```shell
cosign verify -key https://raw.githubusercontent.com/cpanato/raspi-fan-control/main/cosign.pub ghcr.io/cpanato/fan-control:{{ .Version }}
```
extra_files:
- glob: "./cosign.pub"