Skip to content

Commit 427af86

Browse files
committed
Fix release script in github action
This changes adds BuildVersion linker flag in release to fix CNI plugins output. Fixes containernetworking#1019. Signed-off-by: Tomofumi Hayashi <[email protected]>
1 parent dc704d1 commit 427af86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
env:
2626
GOARCH: ${{ matrix.goarch }}
2727
CGO_ENABLED: 0
28-
run: ./build_linux.sh
28+
run: ./build_linux.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}'
2929

3030
- name: COPY files
3131
run: cp README.md LICENSE bin/
@@ -76,7 +76,7 @@ jobs:
7676
env:
7777
GOARCH: ${{ matrix.goarch }}
7878
CGO_ENABLED: 0
79-
run: ./build_windows.sh
79+
run: ./build_windows.sh -ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${{ github.ref_name }}'
8080

8181
- name: COPY files
8282
run: cp README.md LICENSE bin/

0 commit comments

Comments
 (0)