-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
MAKEFLAGS += --silent | ||
.DEFAULT_GOAL := help | ||
|
||
compose: ## Run with docker compose | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build --remove-orphans --force-recreate -d | ||
|
||
pylint: ## Run pylint | ||
pylint $(shell git ls-files '*.py') | ||
|
||
CHART ?= $(shell basename $$PWD) | ||
release: ## Release (eg. V=0.0.1) | ||
@[ "$(V)" ] \ | ||
&& read -p "Press enter to confirm and push tag v$(V) to origin, <Ctrl+C> to abort ..." \ | ||
&& git tag v$(V) -m "chore: v$(V)" \ | ||
&& git push origin v$(V) -f \ | ||
&& git fetch --tags --force --all -p \ | ||
&& git describe --tags $(shell git rev-list --tags --max-count=1) | ||
|
||
help: | ||
awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
clean: ## Clean up | ||
docker-compose rm -s -a -v -f || true | ||
|
||
.PHONY: compose pylint clean help release | ||
|
||
-include include.mk |