Skip to content

Commit

Permalink
Merge pull request #26 from ddebroy/windows1
Browse files Browse the repository at this point in the history
Add rule for building Windows binaries
  • Loading branch information
k8s-ci-robot authored Aug 28, 2019
2 parents 0400867 + 9fba09b commit f85ab5a
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 f85ab5a

Please sign in to comment.