Refactor makefile to separate loadenvs command in deploy-test target

This commit is contained in:
2024-06-04 18:49:03 +08:00
parent 5ec576bebf
commit b4d5b540c3
+7 -3
View File
@@ -25,9 +25,13 @@ deploy-apps: pull
docker stack deploy --compose-file ./swarm/apps.yml apps docker stack deploy --compose-file ./swarm/apps.yml apps
deploy-ghost: pull deploy-ghost: pull
@echo "Deploying the ghost stack..." { \
$(loadenvs ./swarm/.env) @echo "Deploying the ghost stack..." ;\
docker stack deploy --compose-file ./swarm/ghost.yml ghost set -a ;\
source ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/ghost.yml ghost ;\
}
deploy-test: pull deploy-test: pull
@echo "Deploying the test stack..." @echo "Deploying the test stack..."