-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
87 lines (78 loc) · 2.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: 2
project_name: nais-cli
before:
hooks:
- go mod tidy
builds:
- env: [ CGO_ENABLED=0 ]
targets:
- linux_amd64
- darwin_amd64
- darwin_arm64
id: nais-other
dir: .
main: ./
binary: nais
ldflags:
- -s -w -X github.com/nais/cli/cmd.version={{.Version}} -X github.com/nais/cli/cmd.commit={{.Commit}}
- -s -w -X github.com/nais/cli/pkg/metrics.version={{.Version}}
- env: [ CGO_ENABLED=0 ]
targets:
- windows_amd64
id: nais-windows
dir: .
main: ./
binary: nais
ldflags:
- -s -w -X github.com/nais/cli/cmd.version={{.Version}} -X github.com/nais/cli/cmd.commit={{.Commit}}
- -s -w -X github.com/nais/cli/pkg/metrics.version={{.Version}}
hooks:
post:
- osslsigncode sign -certs nais.crt -key nais.key -n "nais-cli" -i "https://doc.nais.io/cli" -verbose -in "{{ .Path }}" -out "{{ .Path }}-signed"
- mv "{{ .Path }}-signed" "{{ .Path }}"
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: nais
name: cli
header: |
## nais-cli ({{ .Version }})
brews:
- repository:
owner: nais
name: homebrew-tap
token: "{{ .Env.HOMEBREW_PUSH_TOKEN }}"
name: nais
homepage: "https://github.com/nais/cli"
description: "Command-line interface for NAIS"
directory: Formula
install: |
bin.install "nais"
test: |
assert_match version, shell_output("#{bin}/nais version")
nfpms:
- package_name: nais
file_name_template: "{{ .PackageName }}_{{ .Version }}"
vendor: NAV / nais team
homepage: "https://github.com/nais/cli"
maintainer: NAV / nais team
description: "Command-line interface for NAIS"
license: MIT
formats:
- deb
version_metadata: git
scoops:
- repository:
owner: nais
name: scoop-bucket
token: "{{ .Env.SCOOP_PUSH_TOKEN }}"
homepage: "https://github.com/nais/cli"
description: "Command-line interface for NAIS"
license: MIT