From ef6c2f114fb0ffa7a03dfbb8bc7f238b7ab9cae2 Mon Sep 17 00:00:00 2001 From: Giovanni d'Amelio Date: Mon, 24 Apr 2023 21:55:31 -0700 Subject: [PATCH] Make goreleaser build the binaries staticly --- .gitignore | 1 + .goreleaser.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 2cf912a..1e52fa4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /gomod2nix-template result .env +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..5ce58c3 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,5 @@ +builds: + - env: + - CGO_ENABLED=0 + ldflags: + - -extldflags="-static"