From 0cc9d3fdebabd04b7ececad8953c7239a83ca461 Mon Sep 17 00:00:00 2001 From: Alex Dzyoba Date: Tue, 21 Sep 2021 17:37:22 +0300 Subject: [PATCH] Release statically linked binaries goreleaser docker image is based on Alpine so when we build dynamically linked binary (by default) it's built against musl that most of the linux systems don't have. Since goreleaser doesn't provide any other docker image we build static binaries. --- .goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 346bf12..ad76757 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,7 @@ --- archives: - format: binary + +builds: + - env: + - CGO_ENABLED=0