Refactor makefile to separate deploy commands for different stacks

This commit is contained in:
2024-06-04 22:32:50 +08:00
parent 0f8fcc4dc0
commit ff1659e969
+9
View File
@@ -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..." ;\