-
Notifications
You must be signed in to change notification settings - Fork 7
/
.goreleaser.yml
58 lines (50 loc) · 1.09 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
project_name: nv
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
binary: nv
main: ./cmd/nv/
env:
- CGO_ENABLE=0
ldflags:
- -s -w -X github.com/jcouture/nv/internal/build.Version={{.Version}}
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, arm, amd64, arm64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [386, amd64, arm, arm64]
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
args:
- "sign-blob"
- "--key=env://COSIGN_PRIVATE_KEY"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- repository:
owner: jcouture
name: homebrew-nv
folder: Formula
homepage: https://github.com/jcouture/nv
description: Lightweight utility to load context specific environment variables
test: |
system "#{bin}/nv"