Include upgrading in deployment

This commit is contained in:
Correl Roush 2018-06-29 10:20:15 -04:00
parent e09c475e2a
commit 1ca5c8d232
1 changed files with 4 additions and 5 deletions

View File

@ -12,8 +12,8 @@ HASS = docker run -it --rm \
test: pull
@$(HASS) --script check_config --files
.PHONY: run stop destroy pull deploy upgrade
run:
.PHONY: run stop destroy pull deploy
run: pull
docker run -d \
--name $(CONTAINER) \
$(addprefix -v ,$(VOLUMES)) \
@ -22,8 +22,7 @@ run:
stop:
docker stop $(CONTAINER)
destroy:
docker rm -f $(CONTAINER)
-docker rm -f $(CONTAINER)
pull:
docker pull $(IMAGE):$(HA_VERSION)
deploy: test destroy run
upgrade: pull deploy
deploy: pull test destroy run