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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

38 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: down start
start:
docker-compose -f docker-compose.yml up -d
down:
docker-compose -f docker-compose.yml down
check:
docker exec homeassistant_instance python -m homeassistant --script check_config --config /config
.DEFAULT_GOAL := lint