From ce6131e5c008daec3290b89b90f9ca6be42838fd Mon Sep 17 00:00:00 2001 From: Stefan Riepenhausen Date: Thu, 27 Apr 2023 09:01:39 +0200 Subject: [PATCH] fix naming --- compose-file.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compose-file.mk b/compose-file.mk index acb47dc..d5d086a 100644 --- a/compose-file.mk +++ b/compose-file.mk @@ -1,6 +1,6 @@ -MANDATORY-compose = DEPLOY_HOSTS DEPLOY_TYPE TAG DEPLOY_COMPOSE_FILE DEPLOY_COMPOSE_PROJECT +MANDATORY-compose-file = DEPLOY_HOSTS DEPLOY_TYPE TAG DEPLOY_COMPOSE_FILE DEPLOY_COMPOSE_PROJECT -pull-compose: +pull-compose-file: @- echo "\n### pulling image(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ @@ -11,25 +11,25 @@ pull-compose: ssh $(SSH_USER)@$(host) "docker pull $(DOCKER_IMAGE)"; \ ) -start-compose: +start-compose-file: @- echo "\n### starting service(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) up -d"; \ ) -stop-compose: +stop-compose-file: @- echo "\n### stopping service(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) down"; \ ) -logs-compose: +logs-compose-file: @- echo "\n### logs" @- ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) logs -f $(service)" -restart-compose: +restart-compose-file: @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) restart"; \