From ff1659e969b50828011f276d68ad206ba83abab2 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Tue, 4 Jun 2024 22:32:50 +0800 Subject: [PATCH] Refactor makefile to separate deploy commands for different stacks --- makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/makefile b/makefile index 96af943..215df7e 100644 --- a/makefile +++ b/makefile @@ -23,6 +23,15 @@ deploy-core: pull docker stack deploy --compose-file ./swarm/core.yml core ;\ } +deploy-portainer: pull + { \ + echo "Deploying the portainer stack..." ;\ + set -a ;\ + . ./swarm/.env ;\ + set +a ;\ + docker stack deploy --compose-file ./swarm/portainer.yml portainer ;\ + } + deploy-services: pull { \ echo "Deploying the services stack..." ;\