cubefs

Форк
0
/
.goreleaser.yaml 
288 строк · 6.2 Кб
1
# This is an example .goreleaser.yml file with some sensible defaults.
2
# Make sure to check the documentation at https://goreleaser.com
3

4
# The lines below are called `modelines`. See `:help modeline`
5
# Feel free to remove those if you don't want/need to use them.
6
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8

9
version: 1
10

11
env:
12
  - PROTO=github.com/cubefs/cubefs/proto
13
  - VV=github.com/cubefs/cubefs/blobstore/util/version.version
14

15
before:
16
  hooks:
17
    - go version
18
    - sh -c 'pwd'
19

20
dist: docker/dist
21

22
builds:
23
  - id: "authtool"
24
    main: ./authtool
25
    binary: cfs-authtool
26
    env:
27
      - CGO_ENABLED=0
28
    goos:
29
      - linux
30
    goarch:
31
      - amd64
32
    flags:
33
      - -trimpath
34
    ldflags:
35
      - -X {{.Env.PROTO}}.Version={{.Version}}
36
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
37
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
38
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
39
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
40
      - -w -s
41
  - id: "bcache"
42
    main: ./blockcache
43
    binary: cfs-bcache
44
    env:
45
      - CGO_ENABLED=0
46
    goos:
47
      - linux
48
    goarch:
49
      - amd64
50
    flags:
51
      - -trimpath
52
    ldflags:
53
      - -X {{.Env.PROTO}}.Version={{.Version}}
54
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
55
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
56
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
57
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
58
      - -w -s
59
  - id: "client"
60
    main: ./client
61
    binary: cfs-client
62
    env:
63
      - CGO_ENABLED=0
64
    goos:
65
      - linux
66
    goarch:
67
      - amd64
68
    flags:
69
      - -trimpath
70
    ldflags:
71
      - -X {{.Env.PROTO}}.Version={{.Version}}
72
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
73
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
74
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
75
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
76
      - -w -s
77
  - id: "fdstore"
78
    main: ./fdstore
79
    binary: fdstore
80
    env:
81
      - CGO_ENABLED=0
82
    goos:
83
      - linux
84
    goarch:
85
      - amd64
86
    flags:
87
      - -trimpath
88
    ldflags:
89
      - -X {{.Env.PROTO}}.Version={{.Version}}
90
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
91
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
92
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
93
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
94
      - -w -s
95
  - id: "fsck"
96
    main: ./fsck
97
    binary: cfs-fsck
98
    env:
99
      - CGO_ENABLED=0
100
    goos:
101
      - linux
102
    goarch:
103
      - amd64
104
    flags:
105
      - -trimpath
106
    ldflags:
107
      - -X {{.Env.PROTO}}.Version={{.Version}}
108
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
109
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
110
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
111
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
112
      - -w -s
113
  - id: "preload"
114
    main: ./preload
115
    binary: cfs-preload
116
    env:
117
      - CGO_ENABLED=0
118
    goos:
119
      - linux
120
    goarch:
121
      - amd64
122
    flags:
123
      - -trimpath
124
    ldflags:
125
      - -X {{.Env.PROTO}}.Version={{.Version}}
126
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
127
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
128
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
129
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
130
      - -w -s
131

132
  - id: "server"
133
    main: ./cmd
134
    binary: cfs-server
135
    env:
136
      - CGO_ENABLED=1
137
    goos:
138
      - linux
139
    goarch:
140
      - amd64
141
    flags:
142
      - -trimpath
143
    ldflags:
144
      - -X {{.Env.PROTO}}.Version={{.Version}}
145
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
146
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
147
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
148
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
149
      - -w -s
150
  - id: "cli"
151
    main: ./cli
152
    binary: cfs-cli
153
    env:
154
      - CGO_ENABLED=1
155
    goos:
156
      - linux
157
    goarch:
158
      - amd64
159
    flags:
160
      - -trimpath
161
    ldflags:
162
      - -X {{.Env.PROTO}}.Version={{.Version}}
163
      - -X {{.Env.PROTO}}.CommitID={{.FullCommit}}
164
      - -X {{.Env.PROTO}}.BranchName={{.Branch}}
165
      - -X {{.Env.PROTO}}.BuildTime={{.Date}}
166
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
167
      - -w -s
168

169
  - id: "clustermgr"
170
    main: ./blobstore/cmd/clustermgr
171
    binary:  ./blobstore/clustermgr
172
    env:
173
      - CGO_ENABLED=1
174
    goos:
175
      - linux
176
    goarch:
177
      - amd64
178
    flags:
179
      - -trimpath
180
    ldflags:
181
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
182
      - -w -s
183
  - id: "blobnode"
184
    main: ./blobstore/cmd/blobnode
185
    binary:  ./blobstore/blobnode
186
    env:
187
      - CGO_ENABLED=1
188
    goos:
189
      - linux
190
    goarch:
191
      - amd64
192
    flags:
193
      - -trimpath
194
    ldflags:
195
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
196
      - -w -s
197
  - id: "access"
198
    main: ./blobstore/cmd/access
199
    binary:  ./blobstore/access
200
    env:
201
      - CGO_ENABLED=0
202
    goos:
203
      - linux
204
    goarch:
205
      - amd64
206
    flags:
207
      - -trimpath
208
    ldflags:
209
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
210
      - -w -s
211
  - id: "scheduler"
212
    main: ./blobstore/cmd/scheduler
213
    binary:  ./blobstore/scheduler
214
    env:
215
      - CGO_ENABLED=0
216
    goos:
217
      - linux
218
    goarch:
219
      - amd64
220
    flags:
221
      - -trimpath
222
    ldflags:
223
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
224
      - -w -s
225
  - id: "proxy"
226
    main: ./blobstore/cmd/proxy
227
    binary:  ./blobstore/proxy
228
    env:
229
      - CGO_ENABLED=0
230
    goos:
231
      - linux
232
    goarch:
233
      - amd64
234
    flags:
235
      - -trimpath
236
    ldflags:
237
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
238
      - -w -s
239
  - id: "blobstore-cli"
240
    main: ./blobstore/cli/cli
241
    binary:  ./blobstore/blobstore-cli
242
    env:
243
      - CGO_ENABLED=1
244
    goos:
245
      - linux
246
    goarch:
247
      - amd64
248
    flags:
249
      - -trimpath
250
    ldflags:
251
      - -X {{.Env.VV}}={{.Branch}}/{{.Date}}
252
      - -w -s
253

254
archives:
255
  - format: tar.gz
256
    # this name template makes the OS and Arch compatible with the results of `uname`.
257
    name_template: >-
258
      {{ .ProjectName }}_
259
      {{- .Version }}_
260
      {{- .Os }}_
261
      {{- .Arch }}
262
      {{- if .Arm }}v{{ .Arm }}{{ end }}
263
    # use zip for windows archives
264
    format_overrides:
265
      - goos: windows
266
        format: zip
267
    files:
268
      - LICENSE
269
      - src: ./build/bin/libcfs*
270
        dst: ./
271
      - src: ./build/bin/libcubefs*.jar
272
        dst: ./
273

274
checksum:
275
  name_template: '{{.ProjectName}}_{{.Version}}_checksums.txt'
276
  algorithm: sha256
277

278
changelog:
279
  sort: asc
280
  filters:
281
    exclude:
282
      - "^docs:"
283
      - "^test:"
284

285
report_sizes: true
286

287
# signs:
288
#   - artifacts: archive
289

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.