-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
62 lines (57 loc) · 1.49 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
version: 2
project_name: ticloud
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
main: ./cmd/ticloud/main.go
ldflags:
- -s -w -X tidbcloud-cli/internal/version.Version={{.Version}} -X tidbcloud-cli/internal/version.Commit={{.ShortCommit}} -X tidbcloud-cli/internal/version.Date={{.Date}}
flags:
- -trimpath
binary: "ticloud"
env:
- CGO_ENABLED=0
id: linux
goos: [linux]
goarch: [amd64,arm64]
- <<: *build_defaults
id: macos
goos: [darwin]
goarch: [amd64,arm64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
archives:
- id: nix
builds: [linux, macos]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: tar.gz
- id: windows
builds: [windows]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: zip
nfpms:
- maintainer: PingCAP Inc.
description: The TiDB Cloud CLI
homepage: https://tidbcloud.com/
license: Apache 2.0
builds: [ linux ]
formats: [ deb,rpm ]
contents:
- src: ./build/package/rpm/installer
dst: /etc/ticloud/installer
type: "config|noreplace"
packager: rpm
- src: ./build/package/deb/installer
dst: /etc/ticloud/installer
type: "config|noreplace"
packager: deb
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}"