forked from teslamate-org/teslamate
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
8adadaf
commit ca11558
Showing
4 changed files
with
18 additions
and
7 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
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
.PHONY: help grafana teslamate | ||
.PHONY: help vsn grafana teslamate | ||
|
||
APP_NAME ?= `grep 'app:' mix.exs | sed -e 's/\[//g' -e 's/ //g' -e 's/app://' -e 's/[:,]//g'` | ||
APP_VSN ?= `grep 'version:' mix.exs | cut -d '"' -f2` | ||
APP_VSN ?= `cat VERSION` | ||
BUILD ?= `git rev-parse --short HEAD` | ||
|
||
help: | ||
@echo "$(APP_NAME):$(APP_VSN)-$(BUILD)" | ||
help: vsn | ||
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
teslamate: ## Build teslamate Docker image | ||
vsn: | ||
@echo "$(APP_NAME):$(APP_VSN)-$(BUILD)" | ||
|
||
teslamate: vsn ## Build teslamate Docker image | ||
@docker build --pull \ | ||
-t $(APP_NAME):$(APP_VSN)-$(BUILD) \ | ||
-t $(APP_NAME) . | ||
|
||
grafana: ## Build teslamate-grafana Docker image | ||
grafana: vsn ## Build teslamate-grafana Docker image | ||
@cd grafana && docker build --pull -t teslamate-grafana . |
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 @@ | ||
1.21.0-dev |
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