try to call reload target on
This commit is contained in:
parent
c075f26476
commit
ae4f1d60bf
6
Makefile
6
Makefile
|
@ -7,12 +7,12 @@ include make-deploy/cron.mk
|
|||
include make-deploy/kustomize.mk
|
||||
include make-deploy/helm.mk
|
||||
|
||||
.PHONY: self-update create-contexts deploy pre-deploy post-deploy upload pull start stop restart reload
|
||||
.PHONY: self-update create-contexts deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
|
||||
|
||||
self-update:
|
||||
@- git submodule update --remote
|
||||
|
||||
deploy: upload pre-deploy pre-local pull start post-local post-deploy
|
||||
deploy: upload pre-deploy pre-local pull start post-local post-deploy reload
|
||||
|
||||
pre-deploy:
|
||||
ifdef DEPLOY_HOSTS
|
||||
|
@ -71,6 +71,6 @@ restart: restart-$(DEPLOY_TYPE)
|
|||
|
||||
reload:
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
echo "$(host)"; \
|
||||
echo "### reloading service on $(host)"; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue