-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
48 lines (42 loc) · 1.25 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
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/libgenerator
binary: libgenerator
env:
- CGO_ENABLED=0
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- "-s -w -X github.com/tf-libsonnet/libgenerator/internal/cmdcfg.Version={{.Version}}"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
signs:
- id: libgenerator-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: tf-libsonnet
name: libgenerator
mode: keep-existing