From d25c72ef6699122c9934af555e46519e3616dc59 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 21 Nov 2022 17:05:57 +0100 Subject: [PATCH] reload-compose target calls ./reload.sh on --- docker.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker.mk b/docker.mk index 827fb1e..6640af2 100644 --- a/docker.mk +++ b/docker.mk @@ -52,5 +52,18 @@ restart-compose: echo "$(host)"; \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose restart"; \ ) + +restart-swarm: + # nop reload-compose: + @- $(foreach host,$(DEPLOY_HOSTS), \ + echo "$(host)"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \ + ) + +reload-swarm: + @- $(foreach host,$(DEPLOY_HOSTS), \ + echo "$(host)"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \ + )