mirror of
https://git.chefkoch.net/pub/make-deploy
synced 2025-05-12 18:44:56 +00:00
fixed pre-/post-deploy to run on remote machine
This commit is contained in:
parent
fa070937c2
commit
64f447bbe9
1 changed files with 2 additions and 4 deletions
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…
Add table
Add a link
Reference in a new issue