Refactor makefile to deploy secondary stack in swarm

This commit is contained in:
2024-06-05 13:44:54 +08:00
parent 2d30694f6e
commit d789cdcbe3
3 changed files with 36 additions and 2 deletions
+8
View File
@@ -49,6 +49,14 @@ deploy-apps: pull
set +a ;\
docker stack deploy --compose-file ./swarm/apps.yml apps ;\
}
deploy-secondary: pull
{ \
echo "Deploying the secondary stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/secondary.yml secondary ;\
}
deploy-ghost: pull
{ \