Skip to content

Commit

Permalink
Disable cgo on build (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devatoria authored May 11, 2020
1 parent fb55f00 commit 732fb82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ test: generate manifests

# Build manager binary
manager: generate
GOOS=linux GOARCH=amd64 go build -o bin/manager/manager main.go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/manager/manager main.go

# Build injector binary
injector:
GOOS=linux GOARCH=amd64 go build -o bin/injector/injector ./cli/injector/
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/injector/injector ./cli/injector/

# Run against the configured Kubernetes cluster in ~/.kube/config
run: generate manifests
Expand Down

0 comments on commit 732fb82

Please sign in to comment.