编辑文件 my-first-workflow.yaml
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user