Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#30 from msau42/fix-windows
Browse files Browse the repository at this point in the history
build windows binaries with .exe suffix
  • Loading branch information
k8s-ci-robot authored Sep 7, 2019
2 parents 2d33550 + ea2f1b5 commit 6ecaa76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.make
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +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/$*
CGO_ENABLED=0 GOOS=windows go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./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 6ecaa76

Please sign in to comment.