Honor .HA_VERSION in Makefile

This commit is contained in:
Correl Roush 2018-06-08 17:34:59 -04:00
parent 2cdf4583fa
commit 8459873d42
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
IMAGE = homeassistant/home-assistant
CONTAINER = home-assistant
HA_VERSION = $(shell cat .HA_VERSION)
HASS_BIN = python -m homeassistant
VOLUMES = $(PWD):/config /etc/localtime:/etc/localtime:ro
HASS = docker run -it --rm \
@ -23,6 +24,6 @@ stop:
destroy:
docker rm -f $(CONTAINER)
pull:
docker pull $(IMAGE)
docker pull $(IMAGE):$(HA_VERSION)
deploy: test destroy run
upgrade: pull deploy