You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
MAKEFLAGS += --silent
|
|
.PHONY: *
|
|
|
|
REGISTRY=registry.fedy95.com
|
|
YAMLLINT_TAG=baseimage-yamllint:latest
|
|
JSONLINT_TAG=baseimage-jsonlint:latest
|
|
|
|
lint: lint-yaml lint-json
|
|
|
|
LINT-YAML-CMD=docker run --rm -it -v $(PWD):/data ${REGISTRY}/${YAMLLINT_TAG}
|
|
lint-yaml:
|
|
docker pull ${REGISTRY}/${YAMLLINT_TAG}
|
|
$(LINT-YAML-CMD) etc/config/blueprints/automation/homeassistant/motion_light.yaml
|
|
$(LINT-YAML-CMD) etc/config/blueprints/automation/homeassistant/notify_leaving_zone.yaml
|
|
$(LINT-YAML-CMD) etc/config/custom_components/circadian_lighting/services.yaml
|
|
$(LINT-YAML-CMD) etc/config/automations.yaml
|
|
$(LINT-YAML-CMD) etc/config/configuration.yaml
|
|
$(LINT-YAML-CMD) etc/config/groups.yaml
|
|
$(LINT-YAML-CMD) etc/config/recorder.yaml
|
|
$(LINT-YAML-CMD) etc/config/scenes.yaml
|
|
$(LINT-YAML-CMD) etc/config/scripts.yaml
|
|
$(LINT-YAML-CMD) docker-compose.yml
|
|
|
|
LINT-JSON-CMD=docker run --rm -it -v $(PWD):/data ${REGISTRY}/${JSONLINT_TAG}
|
|
lint-json:
|
|
docker pull ${REGISTRY}/${JSONLINT_TAG}
|
|
$(LINT-JSON-CMD) -qc etc/config/custom_components/circadian_lighting/manifest.json
|
|
|
|
restart:
|
|
docker-compose -f docker-compose.yml pull
|
|
docker-compose -f docker-compose.yml restart
|
|
|
|
check:
|
|
docker exec homeassistant_instance python -m homeassistant --script check_config --config /config
|
|
|
|
cleanup:
|
|
docker system prune --all --force
|
|
docker system prune --volumes --force
|
|
|
|
.DEFAULT_GOAL := lint
|