Skip to content

Commit

Permalink
make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanzele committed Oct 12, 2022
1 parent d4f8f21 commit f716857
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
26 changes: 21 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,42 @@ ifeq ($(STATIC),1)
LDFLAGS += -s -w -extldflags "-static"
endif

.PHONY: lint
lint: # lint code using golangci-lint
golangci-lint run --max-issues-per-linter=0 --sort-results ./...

.PHONY: test
test: # run tests using gotestsum
gotestsum ./...

build-macos-apple: # build executable
.PHONY: build
build:
$(GO) build -ldflags '$(LDFLAGS)' -v -o kube-webhook-certgen

.PHONY: clean
clean:
rm kube-webhook-certgen

.PHONY: build-macos-apple
build-macos-apple: clean # build executable
GOOS=darwin GOARCH=arm64 $(GO) build -ldflags '$(LDFLAGS)' -v -o kube-webhook-certgen

build-macos-intel: # build executable
.PHONY: build-macos-intel
build-macos-intel: clean # build executable
GOOS=darwin GOARCH=amd64 $(GO) build -ldflags '$(LDFLAGS)' -v -o kube-webhook-certgen

build-intel: # build executable for amd64
.PHONY: build-linux
build-linux: clean # build executable for amd64
GOOS=linux GOARCH=amd64 $(GO) build -ldflags '$(LDFLAGS)' -v -o kube-webhook-certgen

docker-build: test ## Run tests and build docker image.
.PHONY: docker-build
docker-build: test build ## Run tests and build docker image.
docker build -t ${IMG} .

docker-build-quick: ## Build docker image.
.PHONY: docker-build-quick
docker-build-quick: build ## Build docker image.
docker build -t ${IMG} .

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
docker push ${IMG}
2 changes: 1 addition & 1 deletion core/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.5
1.0.6

0 comments on commit f716857

Please sign in to comment.