feat(build): build with goreleaser

Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
slasher 2023-11-30 16:02:09 +08:00 committed by longerfly
parent 9e0a1d9484
commit fa71952e55

View File

@ -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: