diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d6b7ba..100484e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,11 @@ jobs: TARGET_PATH=build DOCKER_REPO=gitsang VERSION=${{ steps.get_version.outputs.VERSION }} - LD_FLAGS="-ldflags -X ddns/pkg/config.Version=${VERSION}" mkdir -p ${TARGET_PATH} ${TARGET_PATH}/bin ${TARGET_PATH}/conf ${TARGET_PATH}/log - go build ${LD_FLAGS} -o ${TARGET_PATH}/bin/${SERVICE_NAME} cmd/${SERVICE_NAME}.go + go build \ + -ldflags "-X ddns/pkg/config.Version=${VERSION}" \ + -o ${TARGET_PATH}/bin/${SERVICE_NAME} cmd/${SERVICE_NAME}.go cp configs/template.yml ${TARGET_PATH}/conf docker build -f Dockerfile --no-cache \