From 427af8636f05d5a1ca20eaefc2fe61f2a79c6393 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Wed, 15 May 2024 02:55:03 +0900 Subject: [PATCH] Fix release script in github action This changes adds BuildVersion linker flag in release to fix CNI plugins output. Fixes #1019. Signed-off-by: Tomofumi Hayashi --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 16dfde2ff..c05dbac9a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: env: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 - run: ./build_linux.sh + run: ./build_linux.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}' - name: COPY files run: cp README.md LICENSE bin/ @@ -76,7 +76,7 @@ jobs: env: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 - run: ./build_windows.sh + run: ./build_windows.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}' - name: COPY files run: cp README.md LICENSE bin/