forked from bytebase/bytebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-for-darwin.yaml
60 lines (60 loc) · 1.62 KB
/
.goreleaser-for-darwin.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
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
- embed_frontend
env:
- VERSION="development"
- GO_VERSION="1.19"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
- BUILD_USER="unknown"
goos:
- 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.19"
- CGO_ENABLED=1
- GIT_COMMIT="unknown"
- BUILD_TIME="unknown"
- BUILD_USER="unknown"
goos:
- darwin
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
snapshot:
name_template: "{{ incpatch .Version }}-next"