-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
109 lines (99 loc) · 2.89 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
version: 2
project_name: tiga
env:
- GO111MODULE=on
before:
hooks:
- task generate
- ./hack/scripts/gencompletions.sh
- ./hack/scripts/genmanpages.sh
builds:
- ldflags:
- -w -s -X github.com/ysicing/tiga/common.Version={{.Summary}}
- -X github.com/ysicing/tiga/common.BuildDate={{.CommitDate}}
- -X github.com/ysicing/tiga/common.GitCommitHash={{.ShortCommit}}
- -X k8s.io/client-go/pkg/version.gitVersion={{.Summary}}
- -X k8s.io/client-go/pkg/version.gitCommit={{.FullCommit}}
- -X k8s.io/client-go/pkg/version.gitTreeState=dirty
- -X k8s.io/client-go/pkg/version.buildDate={{.CommitDate}}
- -X k8s.io/client-go/pkg/version.gitMajor=1
- -X k8s.io/client-go/pkg/version.gitMinor=24
- -X k8s.io/component-base/version.gitVersion={{.Summary}}
- -X k8s.io/component-base/version.gitCommit={{.FullCommit}}
- -X k8s.io/component-base/version.gitTreeState=dirty
- -X k8s.io/component-base/version.gitMajor=1
- -X k8s.io/component-base/version.gitMinor=24
- -X k8s.io/component-base/version.buildDate={{.CommitDate}}
flags:
- -trimpath
env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
main: tiga.go
binary: tiga
hooks:
post:
- ./hack/scripts/upx.sh {{ .Path }}
archives:
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Version }}-snapshot-{{ .ShortCommit }}"
nfpms:
- vendor: TiGA
homepage: https://ysicing.me
maintainer: tiga
description: Simple Cli tool for sernior restart engineer written by golang
file_name_template: '{{.ProjectName}}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}'
license: AGPL-3.0
priority: optional
version_metadata: git
formats:
- deb
- rpm
section: utils
contents:
- src: completions/tiga.bash
dst: /usr/share/bash-completion/completions/tiga
- src: completions/tiga.fish
dst: /usr/share/fish/completions/tiga.fish
- src: completions/tiga.zsh
dst: /usr/share/zsh/vendor-completions/_tiga
- src: manpages/tiga.1.gz
dst: /usr/share/man/man1/tiga.1.gz
- src: LICENSE
dst: /usr/share/doc/tiga/copyright
- dst: /root/.tiga
type: dir
changelog:
sort: asc
groups:
- title: 'New Features 🎉'
regexp: "^.*feat.*"
order: 0
- title: 'Bug Fixes 🐛'
regexp: "^.*(Fix|fix|bug).*"
order: 1
- title: 'Documentation 🖊️'
regexp: "^.*docs.*"
order: 2
- title: 'Others:'
order: 999
filters:
exclude:
- '^Merge remote'
release:
prerelease: auto
replace_existing_draft: true
mode: replace