fixed pre-/post-deploy to run on remote machine
This commit is contained in:
parent
fa070937c2
commit
64f447bbe9
6
Makefile
6
Makefile
|
@ -27,15 +27,13 @@ post-deploy-swarm: post-deploy-docker
|
|||
pre-deploy-docker:
|
||||
@- echo "\n### running pre-deploy script"
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
||||
sh pre-deploy; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy"; \
|
||||
)
|
||||
|
||||
post-deploy-docker:
|
||||
@- echo "\n### running post-deploy script"
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
||||
sh post-deploy; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy"; \
|
||||
)
|
||||
|
||||
upload:
|
||||
|
|
Loading…
Reference in New Issue