-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
60 lines (54 loc) · 1.17 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
49
50
51
52
53
54
55
56
57
58
59
60
version: 2
project_name: narc-cli
before:
hooks:
- go mod tidy
builds:
- targets:
- linux_amd64
- darwin_amd64
- darwin_arm64
id: narc
dir: .
main: cmd/narc/main.go
binary: narc
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}}
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: nais
name: narcos
header: |
## narc-cli ({{ .Version }})
brews:
- repository:
owner: nais
name: homebrew-tap
token: "{{ .Env.HOMEBREW_PUSH_TOKEN }}"
name: narc
homepage: "https://github.com/nais/narcos"
description: "NAIS Administration CLI"
directory: Formula
install: |
bin.install "narc"
test: |
assert_match version, shell_output("#{bin}/narc version")
nfpms:
- package_name: narc
file_name_template: "{{ .PackageName }}_{{ .Version }}"
vendor: NAV / nais team
homepage: "https://github.com/nais/narcos"
maintainer: NAV / nais team
description: "NAIS Administration CLI"
license: MIT
formats:
- deb
version_metadata: git