1
0
Fork 0
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:
Andreas Neue 2022-07-04 17:57:32 +02:00
parent fa070937c2
commit 64f447bbe9

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: