diff --git a/.drone.yml b/.drone.yml index 448b327..bd65d1a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,9 +16,10 @@ server: steps: - name: release commands: - - cd /mnt/md0/infra/home-assistant + - cd /mnt/md0/infra/homeassistant - git pull - make restart + - make check trigger: branch: diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..38fe478 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.json] +indent_style = space +indent_size = 4 diff --git a/Makefile b/Makefile index a3170a5..b6faa42 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,14 @@ MAKEFLAGS += --silent .PHONY: * -restart: - docker-compose -f docker-compose.yml down +start: docker-compose -f docker-compose.yml up -d +down: + docker-compose -f docker-compose.yml down + +restart: down start + +check: + docker exec homeassistant_instance python -m homeassistant --script check_config --config /config .DEFAULT_GOAL := restart diff --git a/README.md b/README.md index a2449a7..6621964 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -### reverse_proxy +### homeassistant [![Build Status](https://drone.fedy95.com/api/badges/infra/home-assistant/status.svg)](https://drone.fedy95.com/infra/home-assistant) ## services