target specific pre- and post-deploy scripts
This commit is contained in:
parent
a9ee4acddc
commit
8ad9a3dd6f
10
Makefile
10
Makefile
|
@ -14,15 +14,15 @@ self-update:
|
||||||
deploy: upload pre-deploy pre-local pull start post-local post-deploy
|
deploy: upload pre-deploy pre-local pull start post-local post-deploy
|
||||||
|
|
||||||
pre-deploy:
|
pre-deploy:
|
||||||
@- echo "\n### running pre-deploy script"
|
@- echo "\n### running pre-deploy script(s)"
|
||||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh"; \
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh; sh pre-deploy_$(host).sh"; \
|
||||||
)
|
)
|
||||||
|
|
||||||
post-deploy:
|
post-deploy:
|
||||||
@- echo "\n### running post-deploy script"
|
@- echo "\n### running post-deploy script(s)"
|
||||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh"; \
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh; sh post-deploy_$(host).sh"; \
|
||||||
)
|
)
|
||||||
|
|
||||||
pre-local:
|
pre-local:
|
||||||
|
@ -30,7 +30,7 @@ pre-local:
|
||||||
@- sh ./pre-local.sh
|
@- sh ./pre-local.sh
|
||||||
|
|
||||||
post-local:
|
post-local:
|
||||||
@- echo "\n### running pre-local script"
|
@- echo "\n### running post-local script"
|
||||||
@- sh ./post-local.sh
|
@- sh ./post-local.sh
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
|
|
Loading…
Reference in New Issue