Skip to content

Commit

Permalink
Add rule for building Windows binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Deep Debroy <[email protected]>
  • Loading branch information
ddebroy committed Aug 28, 2019
1 parent 0400867 commit 9fba09b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.make
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ endif
build-%:
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
CGO_ENABLED=0 GOOS=windows go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*

container-%: build-%
docker build -t $*:latest -f $(shell if [ -e ./cmd/$*/Dockerfile ]; then echo ./cmd/$*/Dockerfile; else echo Dockerfile; fi) --label revision=$(REV) .
Expand Down

0 comments on commit 9fba09b

Please sign in to comment.