Skip to content

Commit

Permalink
fix: fix ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsang committed Jun 22, 2022
1 parent 24ff82b commit 4c87936
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4c87936

Please sign in to comment.