Skip to content

Commit

Permalink
fix: force disable CGO for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
distorhead committed Sep 16, 2021
1 parent 250be7b commit 7a69ca7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build_release_v3.sh
Expand Up @@ -10,8 +10,10 @@ if [ -z "$VERSION" ] ; then
exit 1
fi

export CGO_ENABLED=0

gox -osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64" \
-output="release-build/$VERSION/{{.OS}}-{{.Arch}}/bin/werf" \
-tags "dfrunmount dfssh" \
-tags="dfrunmount dfssh" \
-ldflags="-s -w -X github.com/werf/werf/pkg/werf.Version=$VERSION" \
github.com/werf/werf/cmd/werf

0 comments on commit 7a69ca7

Please sign in to comment.