diff --git a/Makefile b/Makefile index 89814f0..f06ce68 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ help: @cat docs/developer-guide/make-targets.md .PHONY: release -release: linux compress +release: linux alpine compress .PHONY: build build: @@ -33,6 +33,12 @@ linux: cp .bin/$(NAME)_linux-amd64 .bin/$(NAME) GOOS=linux GOARCH=arm64 go build -ldflags "-X \"main.version=$(VERSION_TAG)\"" -o .bin/$(NAME)_linux-arm64 +.PHONY: alpine +linux: + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X \"main.version=$(VERSION_TAG)\"" -o .bin/$(NAME)_alpine-amd64 + cp .bin/$(NAME)_linux-amd64 .bin/$(NAME) + GCGO_ENABLED=0 OOS=linux GOARCH=arm64 go build -ldflags "-X \"main.version=$(VERSION_TAG)\"" -o .bin/$(NAME)_alpine-arm64 + .PHONY: darwin darwin: GOOS=darwin GOARCH=amd64 go build -ldflags "-X \"main.version=$(VERSION_TAG)\"" -o .bin/$(NAME)_darwin-amd64 @@ -53,4 +59,4 @@ install: .PHONY: lint lint: build - golangci-lint run --verbose --print-resources-usage \ No newline at end of file + golangci-lint run --verbose --print-resources-usage