Skip to content

Commit

Permalink
Fix Makefile to enforce static binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Apr 15, 2020
1 parent 035efdb commit cfa5e51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.ONESHELL:
.SECONDEXPANSION:
.DELETE_ON_ERROR:
.EXPORT_ALL_VARIABLES
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

Expand All @@ -21,6 +22,7 @@ GITHUB_REF ?= dev
GIT_REF ?= $(subst refs/heads/,,$(subst refs/tags/,,$(GITHUB_REF)))
GITHUB_SHA ?= dev
GIT_SHA ?= $(GITHUB_SHA)

CGO_ENABLED ?= 0
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
Expand Down

0 comments on commit cfa5e51

Please sign in to comment.