add as parameter to (pre|post)-deploy.sh
This commit is contained in:
parent
63f3889803
commit
903111cab2
4
Makefile
4
Makefile
|
@ -18,7 +18,7 @@ pre-deploy:
|
|||
ifdef DEPLOY_HOSTS
|
||||
@- echo "\n### running pre-deploy script(s)"
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh; sh pre-deploy_$(host).sh"; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh $(host); sh pre-deploy_$(host).sh"; \
|
||||
)
|
||||
endif
|
||||
|
||||
|
@ -26,7 +26,7 @@ post-deploy:
|
|||
ifdef DEPLOY_HOSTS
|
||||
@- echo "\n### running post-deploy script(s)"
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh; sh post-deploy_$(host).sh"; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh $(host); sh post-deploy_$(host).sh"; \
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue