From 2e0fd7102607237041c0d347897d3f0f225ec17b Mon Sep 17 00:00:00 2001 From: Ivan Ilves Date: Thu, 3 Nov 2022 21:04:05 +0100 Subject: [PATCH] chore(GH-24): make binary builds really static --- .goreleaser.yml | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2416f05..86cf259 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -12,6 +12,9 @@ builds: main: ./cmd/travelgrunt/main.go ldflags: - -X main.appVersion={{.Env.RELEASE_VERSION}} + tags: + - netgo + - osusergo brews: - name: travelgrunt diff --git a/Makefile b/Makefile index a3dc7b3..a872e7c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ dep: go mod vendor build: - cd ${BUILD_PATH} && go build + cd ${BUILD_PATH} && go build -tags netgo,osusergo clean: git clean -fdx