From 8ad9a3dd6f6cf919fda253df4c699c608f1d9ada Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 6 Oct 2022 10:25:40 +0200 Subject: [PATCH] target specific pre- and post-deploy scripts --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 539d0f0..1aeba17 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,15 @@ self-update: deploy: upload pre-deploy pre-local pull start post-local post-deploy pre-deploy: - @- echo "\n### running pre-deploy script" + @- echo "\n### running pre-deploy script(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ - ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh; sh pre-deploy_$(host).sh"; \ ) post-deploy: - @- echo "\n### running post-deploy script" + @- echo "\n### running post-deploy script(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ - ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh; sh post-deploy_$(host).sh"; \ ) pre-local: @@ -30,7 +30,7 @@ pre-local: @- sh ./pre-local.sh post-local: - @- echo "\n### running pre-local script" + @- echo "\n### running post-local script" @- sh ./post-local.sh upload: