mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
feat(build): build with goreleaser
Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
parent
9e0a1d9484
commit
fa71952e55
@ -456,6 +456,49 @@ services:
|
||||
cd ${CFSROOT} &&
|
||||
/go/bin/goreleaser release --skip-publish --clean
|
||||
|
||||
build_libsdkpre:
|
||||
image: ${IMAGE}
|
||||
volumes:
|
||||
- ../:${CFSROOT}
|
||||
command:
|
||||
- bash
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
cd ${CFSROOT} && make libsdkpre
|
||||
|
||||
goreleaser:
|
||||
image: ${IMAGE}
|
||||
volumes:
|
||||
- ../:${CFSROOT}
|
||||
command:
|
||||
- bash
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
cd ${CFSROOT} &&
|
||||
/go/bin/goreleaser release --skip-publish --clean
|
||||
|
||||
bs_gofumpt:
|
||||
<<: *command
|
||||
command:
|
||||
- bash
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
cd ${CFSROOT}/blobstore && go vet -trimpath ./... &&
|
||||
/go/bin/gofumpt -l -w . && git diff --exit-code
|
||||
|
||||
bs_golint:
|
||||
<<: *command
|
||||
command:
|
||||
- bash
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
cd ${CFSROOT}/blobstore &&
|
||||
/go/bin/golangci-lint run --timeout 10m --issues-exit-code=1 -D errcheck -E bodyclose ./...
|
||||
|
||||
gosec:
|
||||
<<: *command
|
||||
command:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user