feat(build): static build

This commit is contained in:
Jan De Dobbeleer 2022-01-19 13:29:37 +01:00 committed by Jan De Dobbeleer
parent 06231cb08e
commit 8fca218a7d

View file

@ -10,7 +10,13 @@ builds:
flags:
- -a
ldflags:
- -s -w -X main.Version={{.Version}}
- -s -w -X main.Version={{.Version}} -extldflags "-static"
tags:
- netgo
- osusergo
- static_build
env:
- CGO_ENABLED=0
goos:
- linux
- windows