cubefs
/
.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
9version: 110
11env:12- PROTO=github.com/cubefs/cubefs/proto13- VV=github.com/cubefs/cubefs/blobstore/util/version.version14
15before:16hooks:17- go version18- sh -c 'pwd'19
20dist: docker/dist21
22builds:23- id: "authtool"24main: ./authtool25binary: cfs-authtool26env:27- CGO_ENABLED=028goos:29- linux30goarch:31- amd6432flags:33- -trimpath34ldflags: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 -s41- id: "bcache"42main: ./blockcache43binary: cfs-bcache44env:45- CGO_ENABLED=046goos:47- linux48goarch:49- amd6450flags:51- -trimpath52ldflags: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 -s59- id: "client"60main: ./client61binary: cfs-client62env:63- CGO_ENABLED=064goos:65- linux66goarch:67- amd6468flags:69- -trimpath70ldflags: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 -s77- id: "fdstore"78main: ./fdstore79binary: fdstore80env:81- CGO_ENABLED=082goos:83- linux84goarch:85- amd6486flags:87- -trimpath88ldflags: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 -s95- id: "fsck"96main: ./fsck97binary: cfs-fsck98env:99- CGO_ENABLED=0100goos:101- linux102goarch:103- amd64104flags:105- -trimpath106ldflags: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 -s113- id: "preload"114main: ./preload115binary: cfs-preload116env:117- CGO_ENABLED=0118goos:119- linux120goarch:121- amd64122flags:123- -trimpath124ldflags: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 -s131
132- id: "server"133main: ./cmd134binary: cfs-server135env:136- CGO_ENABLED=1137goos:138- linux139goarch:140- amd64141flags:142- -trimpath143ldflags: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 -s150- id: "cli"151main: ./cli152binary: cfs-cli153env:154- CGO_ENABLED=1155goos:156- linux157goarch:158- amd64159flags:160- -trimpath161ldflags: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 -s168
169- id: "clustermgr"170main: ./blobstore/cmd/clustermgr171binary: ./blobstore/clustermgr172env:173- CGO_ENABLED=1174goos:175- linux176goarch:177- amd64178flags:179- -trimpath180ldflags:181- -X {{.Env.VV}}={{.Branch}}/{{.Date}}182- -w -s183- id: "blobnode"184main: ./blobstore/cmd/blobnode185binary: ./blobstore/blobnode186env:187- CGO_ENABLED=1188goos:189- linux190goarch:191- amd64192flags:193- -trimpath194ldflags:195- -X {{.Env.VV}}={{.Branch}}/{{.Date}}196- -w -s197- id: "access"198main: ./blobstore/cmd/access199binary: ./blobstore/access200env:201- CGO_ENABLED=0202goos:203- linux204goarch:205- amd64206flags:207- -trimpath208ldflags:209- -X {{.Env.VV}}={{.Branch}}/{{.Date}}210- -w -s211- id: "scheduler"212main: ./blobstore/cmd/scheduler213binary: ./blobstore/scheduler214env:215- CGO_ENABLED=0216goos:217- linux218goarch:219- amd64220flags:221- -trimpath222ldflags:223- -X {{.Env.VV}}={{.Branch}}/{{.Date}}224- -w -s225- id: "proxy"226main: ./blobstore/cmd/proxy227binary: ./blobstore/proxy228env:229- CGO_ENABLED=0230goos:231- linux232goarch:233- amd64234flags:235- -trimpath236ldflags:237- -X {{.Env.VV}}={{.Branch}}/{{.Date}}238- -w -s239- id: "blobstore-cli"240main: ./blobstore/cli/cli241binary: ./blobstore/blobstore-cli242env:243- CGO_ENABLED=1244goos:245- linux246goarch:247- amd64248flags:249- -trimpath250ldflags:251- -X {{.Env.VV}}={{.Branch}}/{{.Date}}252- -w -s253
254archives:255- format: tar.gz256# this name template makes the OS and Arch compatible with the results of `uname`.257name_template: >-258{{ .ProjectName }}_259{{- .Version }}_260{{- .Os }}_261{{- .Arch }}262{{- if .Arm }}v{{ .Arm }}{{ end }}263# use zip for windows archives264format_overrides:265- goos: windows266format: zip267files:268- LICENSE269- src: ./build/bin/libcfs*270dst: ./271- src: ./build/bin/libcubefs*.jar272dst: ./273
274checksum:275name_template: '{{.ProjectName}}_{{.Version}}_checksums.txt'276algorithm: sha256277
278changelog:279sort: asc280filters:281exclude:282- "^docs:"283- "^test:"284
285report_sizes: true286
287# signs:
288# - artifacts: archive
289