forked from bytebase/bytebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
83 lines (78 loc) · 1.93 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
before:
hooks:
- go mod tidy
builds:
- id: server
main: ./bin/server
binary: bytebase
ldflags:
- -w -s
- -X github.com/bytebase/bytebase/bin/server/cmd.version={{.Version}}
- -X github.com/bytebase/bytebase/bin/server/cmd.goversion=${GO_VERSION}
- -X github.com/bytebase/bytebase/bin/server/cmd.gitcommit={{.Commit}}
- -X github.com/bytebase/bytebase/bin/server/cmd.buildtime={{.Timestamp}}
- -X github.com/bytebase/bytebase/bin/server/cmd.builduser=goreleaser
tags:
- release
env:
- VERSION="development"
- GO_VERSION="1.16.5"
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
- BUILD_USER="unknown"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- id: cli
main: ./bin/bb
binary: bb
ldflags:
- -w -s
- -X github.com/bytebase/bytebase/bin/bb/cmd.version={{.Version}}
- -X github.com/bytebase/bytebase/bin/bb/cmd.goversion=${GO_VERSION}
- -X github.com/bytebase/bytebase/bin/bb/cmd.gitcommit={{.Commit}}
- -X github.com/bytebase/bytebase/bin/bb/cmd.buildtime={{.Timestamp}}
- -X github.com/bytebase/bytebase/bin/bb/cmd.builduser=goreleaser
tags:
- release
env:
- VERSION="development"
- GO_VERSION="1.16.5"
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
- BUILD_USER="unknown"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
draft: true
mode: append
name_template: "Release {{.Tag}}"
header: |
# What's Changed
## 🚀 Features
## 🎄 Enhancements
## 🎠 Community
## New Contributors
**Full Changelog**: