forked from apecloud/kubeblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
101 lines (90 loc) · 2.48 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
project_name: kbcli
release:
prerelease: true
github:
owner: apecloud
name: kbcli
before:
hooks:
- go mod tidy
- make test-go-generate
- make generate
env:
- K3D_VERSION=5.4.4
- K3S_IMG_TAG=v1.23.8-k3s1
builds:
- main: cmd/cli/main.go
id: kbcli
binary: kbcli
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.21
- CGO_ENABLED=0
tags:
- containers_image_openpgp
ldflags:
- -s -w -X github.com/apecloud/kubeblocks/version.BuildDate={{ .Date }}
- -s -w -X github.com/apecloud/kubeblocks/version.GitCommit={{ .FullCommit }}
- -s -w -X github.com/apecloud/kubeblocks/version.Version={{ .Version }}
- -s -w -X github.com/apecloud/kubeblocks/version.DefaultKubeBlocksVersion={{ .Version }}
- -s -w -X github.com/apecloud/kubeblocks/version.GitVersion={{ .Tag }}
- -s -w -X github.com/apecloud/kubeblocks/version.K3sImageTag={{ .Env.K3S_IMG_TAG }}
- -s -w -X github.com/apecloud/kubeblocks/version.K3dVersion={{ .Env.K3D_VERSION }}
archives:
- format: tar.gz
wrap_in_directory: '{{ .Os }}-{{ .Arch }}'
name_template: >-
{{- .ProjectName }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}amd64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}-
{{- .Tag }}
format_overrides:
- goos: windows
format: zip
nfpms:
-
id: kbcli
package_name: kbcli
file_name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}-{{ .Tag }}"
builds:
- kbcli
vendor: ApeCloud Inc.
homepage: kubeblocks.io
maintainer: ApeCloud Inc.
description: A CLI tool for kubeblocks
license: AGPL-3.0
release: "1"
formats:
- deb
- rpm
dependencies:
- git
- zsh
# Path that the binaries should be installed.
bindir: /usr/bin
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
algorithm: sha256
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj