From 561be31fceb4e24bb426aae52f12cc32ce16280c Mon Sep 17 00:00:00 2001 From: jpts Date: Wed, 5 Apr 2023 18:18:28 +0100 Subject: [PATCH] ci: add static flag --- .goreleaser.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9ead83f..2429298 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,6 +6,8 @@ builds: - id: coredns-enum env: - CGO_ENABLED=0 + ldflags: + - "-s -w -extldflags='-static'" goos: - linux - darwin