swarm: use context

This commit is contained in:
Andreas Neue 2022-07-15 22:49:40 +02:00
parent ef037a6916
commit 91999ec9b5
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ start-compose:
start-swarm:
@- echo "\n### starting service(s)"
@- $(foreach ctx,$(DEPLOY_HOSTS), \
docker stack deploy -c stack.yml $(DEPLOY_NAME); \
docker --context $(ctx) stack deploy -c stack.yml $(DEPLOY_NAME); \
)
stop-compose:
@ -55,7 +55,7 @@ stop-compose:
stop-swarm:
@- echo "\n### stopping service(s)"
@- $(foreach ctx,$(DEPLOY_HOSTS), \
docker stack rm $(DEPLOY_NAME); \
docker --context $(ctx) stack rm $(DEPLOY_NAME); \
)
logs-compose: