1
This commit is contained in:
@@ -98,15 +98,13 @@ steps:
|
||||
GOSUMDB: off # 统一缩进6个空格
|
||||
commands: # 子元素,缩进4个空格
|
||||
- mkdir -p build # commands内的项,缩进6个空格
|
||||
- source "$CI_ENV_FILE" # 加载环境变量,缩进6个空格
|
||||
- BIN_NAME="logic_${BUILD_VERSION}" # 缩进6个空格
|
||||
- echo "BIN_NAME=${BIN_NAME}" >> "$CI_ENV_FILE" # 缩进6个空格
|
||||
- BIN_NAME="logic_${CI_STEP_STARTED}" # 缩进6个空格
|
||||
- | # 缩进6个空格
|
||||
go build -v \
|
||||
-p=4 \
|
||||
-trimpath \
|
||||
-buildvcs=false \
|
||||
-ldflags "-s -w -buildid= -extldflags '-static' -X main.version=${BUILD_VERSION}" \
|
||||
-ldflags "-s -w -buildid= -extldflags '-static' -X main.version=${CI_STEP_STARTED}" \
|
||||
-o ./build/${BIN_NAME} \
|
||||
./logic
|
||||
- | # 缩进6个空格
|
||||
|
||||
Reference in New Issue
Block a user