-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
64 lines (56 loc) · 1.38 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
release:
draft: true
replace_existing_draft: true
before:
hooks:
- go mod download
builds:
- main: main.go
id: modctl
binary: modctl
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/CloudNativeAI/modctl/pkg/version.GitVersion={{ .Tag }}
- -X github.com/CloudNativeAI/modctl/pkg/version.GitCommit={{ .ShortCommit }}
- -X github.com/CloudNativeAI/modctl/pkg/version.BuildTime={{ .Date }}
archives:
- name_template: "modctl-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
formats: ["tar.gz"]
files:
- LICENSE
- README.md
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: modctl
maintainer: Model Spec Maintainers <[email protected]>
file_name_template: "modctl-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
package_name: modctl
description: A command line tool for managing artifact bundled based on the Model Format Specification
license: "Apache 2.0"
bindir: /usr/bin
builds:
- modctl
formats:
- rpm
- deb
contents:
- src: build/package/docs/modctl.1
dst: /usr/share/man/man1/modctl.1
- src: LICENSE
dst: /usr/share/doc/modctl/License