Skip to content

Commit eb24b21

Browse files
committed
chore: replace make tag with bump-major/minor/patch targets
1 parent 3b8355d commit eb24b21

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GO_ENV := \
1515
GO111MODULE=$(GO111MODULE) \
1616
CGO_ENABLED=$(CGO_ENABLED)
1717

18-
.PHONY: all build lint clean test help tidy upgrade tag pre helm-lint helm-publish release build-snapshot
18+
.PHONY: all build lint clean test help tidy upgrade tag pre helm-lint helm-publish release build-snapshot bump-major bump-minor bump-patch
1919

2020
all: help
2121

@@ -54,8 +54,14 @@ test: ## Run Go tests and generate coverage report
5454
vet: ## Vet the Go code
5555
$(GO_ENV) go vet ./...
5656

57-
tag: ## Creates a release tag (usage: make tag BUMP=patch|minor|major)
58-
tools/bump $(BUMP)
57+
bump-major: ## Bump major version (1.2.3 → 2.0.0)
58+
tools/bump major
59+
60+
bump-minor: ## Bump minor version (1.2.3 → 1.3.0)
61+
tools/bump minor
62+
63+
bump-patch: ## Bump patch version (1.2.3 → 1.2.4)
64+
tools/bump patch
5965

6066
up: ## Create a Kubernetes cluster with KinD
6167
kind create cluster --name $(APP_NAME) --config $(CONFIG_FILE) --wait 5m

0 commit comments

Comments
 (0)