Skip to content

Commit 4c87936

Browse files
committed
fix: fix ci script
1 parent 24ff82b commit 4c87936

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ jobs:
3030
TARGET_PATH=build
3131
DOCKER_REPO=gitsang
3232
VERSION=${{ steps.get_version.outputs.VERSION }}
33-
LD_FLAGS="-ldflags -X ddns/pkg/config.Version=${VERSION}"
3433
3534
mkdir -p ${TARGET_PATH} ${TARGET_PATH}/bin ${TARGET_PATH}/conf ${TARGET_PATH}/log
36-
go build ${LD_FLAGS} -o ${TARGET_PATH}/bin/${SERVICE_NAME} cmd/${SERVICE_NAME}.go
35+
go build \
36+
-ldflags "-X ddns/pkg/config.Version=${VERSION}" \
37+
-o ${TARGET_PATH}/bin/${SERVICE_NAME} cmd/${SERVICE_NAME}.go
3738
cp configs/template.yml ${TARGET_PATH}/conf
3839
3940
docker build -f Dockerfile --no-cache \

0 commit comments

Comments
 (0)