From 6c86ef1fe264e3a4f8a6351f1cdc9d26fbd0b104 Mon Sep 17 00:00:00 2001 From: johlanse Date: Fri, 5 Aug 2022 17:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push-to-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-to-docker.yml b/.github/workflows/push-to-docker.yml index 2776678..cbdb693 100644 --- a/.github/workflows/push-to-docker.yml +++ b/.github/workflows/push-to-docker.yml @@ -31,7 +31,7 @@ jobs: - name: Build binary file run: | - echo "${env.RELEASE_VERSION}" + export LD_FLAGS="-w -s -X main.VERSION=${env.RELEASE_VERSION}" go mod tidy go build -o "output/study_xxqg" -trimpath -ldflags "$LD_FLAGS" ./