From c2e8e2470c7496e6bcb4549fc5671a08e1eeb89d Mon Sep 17 00:00:00 2001 From: George Angel Date: Tue, 13 Feb 2018 12:09:49 +0000 Subject: [PATCH] Disable cgo and statically link the build Enables running on Alpine Linux and other musl based distributions --- .goreleaser.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 957d7e8..74c5a29 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,9 @@ # Build customization builds: - - binary: strongbox + - ldflags: -s -extldflags "-static" + env: + - CGO_ENABLED=0 + goos: - windows - darwin