编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 14:23:37 +08:00
committed by cnb
parent fb79ed2076
commit a9b8f4ecd2

View File

@@ -74,10 +74,26 @@ steps:
commands:
- cd blazing
- mkdir -p build
- BIN_NAME="login_${CI_PIPELINE_CREATED}"
- export GO111MODULE=on
- export GOPROXY=https://goproxy.cn
- |
go build -v \
-p=24 \
-trimpath \
-buildvcs=false \
-ldflags "-s -w -buildid= -extldflags '-static'" \
-o ./build/$BIN_NAME \
./login
- |
if [ ! -f ./build/$BIN_NAME ]; then
echo "❌ 编译失败:产物$BIN_NAME不存在"
exit 1
fi
- echo "产物名称:$BIN_NAME"
- echo "✅ Login服务编译完成"
- BIN_NAME="logic_${CI_PIPELINE_CREATED}"
- |
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
go build -v \
-p=24 \
-trimpath \