Simplified Docker build step in Makefile.
@@ -5,6 +5,8 @@ IMG ?= kudobuilder/controller:${TAG}
all: test manager
+
+
# Run tests
test: generate fmt vet manifests
go test ./pkg/... ./cmd/... -coverprofile cover.out
@@ -43,7 +45,7 @@ generate:
go generate ./pkg/... ./cmd/...
# Build the docker image
-docker-build: test
+docker-build: generate fmt vet manifests
docker build . -t ${IMG}
@echo "updating kustomize image patch file for manager resource"
sed -i'' -e 's@image: .*@image: '"${IMG}"'@' ./config/default/manager_image_patch.yaml
