fixed pre-/post-deploy to run on remote machine

This commit is contained in:
Andreas Neue 2022-07-04 17:57:32 +02:00
parent fa070937c2
commit 64f447bbe9
1 changed files with 2 additions and 4 deletions

View File

@ -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: