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:
|
pre-deploy-docker:
|
||||||
@- echo "\n### running pre-deploy script"
|
@- echo "\n### running pre-deploy script"
|
||||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy"; \
|
||||||
sh pre-deploy; \
|
|
||||||
)
|
)
|
||||||
|
|
||||||
post-deploy-docker:
|
post-deploy-docker:
|
||||||
@- echo "\n### running post-deploy script"
|
@- echo "\n### running post-deploy script"
|
||||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy"; \
|
||||||
sh post-deploy; \
|
|
||||||
)
|
)
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
|
|
Loading…
Reference in New Issue