From 6049721ee2860158841765e835f4fb68a3d9784d Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sun, 3 Jul 2022 23:19:46 +0200 Subject: [PATCH] fixed call to pre- and post-deploy.sh --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 88944c5..47f68af 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,16 @@ create_contexts: deploy: upload pre-deploy pull start post-deploy pre-deploy: - @- cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh + @- $(foreach host,$(DEPLOY_HOSTS), \ + cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \ + sh pre-deploy.sh; \ + ) post-deploy: - @- cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh + @- $(foreach host,$(DEPLOY_HOSTS), \ + cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \ + sh post-deploy.sh; \ + ) upload: @- echo "\n### uploading files" @@ -52,7 +58,6 @@ logs-compose: @- echo "\n### logs" @- docker context use $(host) @- docker-compose logs -f $(service) - start-swarm: