-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
34 lines (26 loc) · 867 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include .env
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
build: ## Build Images
docker compose build --no-cache
retag: ## Delete version Tag, Push, Create version tag
git tag -d ${BUILD_VERSION}
git push origin :refs/tags/${BUILD_VERSION}
git tag ${BUILD_VERSION} -m "Version ${BUILD_VERSION} released"
tag: ## Create version tag
git tag ${BUILD_VERSION} -m "Version ${BUILD_VERSION} released"
commit: ## Commit code
git add .
git commit -m'Working on ${BUILD_VERSION}'
push: ## Push, Push Tags
git push
git push --tags
public: ## Commit, Retag, Push
$(MAKE) commit
$(MAKE) tag
$(MAKE) push