-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
46 lines (40 loc) · 1.14 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
before:
hooks:
- go mod tidy
builds:
- main: .
binary: github-app-token
env:
- CGO_ENABLED=0
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- "-s -w"
goos:
- linux
goarch:
- amd64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
signs:
- id: github-app-token-keyless
artifacts: archive
signature: "${artifact}-keyless.sig"
certificate: "${artifact}-keyless.pem"
cmd: cosign
args: ["sign-blob", "-y", "--output-signature", "${artifact}-keyless.sig", "--output-certificate", "${artifact}-keyless.pem", "${artifact}"]
- id: checksum-keyless
artifacts: checksum
signature: "${artifact}-keyless.sig"
certificate: "${artifact}-keyless.pem"
cmd: cosign
args: ["sign-blob", "-y", "--output-signature", "${artifact}-keyless.sig", "--output-certificate", "${artifact}-keyless.pem", "${artifact}"]
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: "SNAPSHOT-{{ .ShortCommit }}"
release:
github:
owner: fensak-io
name: github-app-token
mode: keep-existing