From ec59fc0604b82b1e04102d725e687f1150284540 Mon Sep 17 00:00:00 2001 From: furyhawk Date: Sun, 12 Jul 2026 09:53:42 +0800 Subject: [PATCH] feat: remove old immutable configs before deploying Grafana and Prometheus stacks --- makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makefile b/makefile index 9d13030..6e123d0 100644 --- a/makefile +++ b/makefile @@ -229,6 +229,8 @@ deploy-grafana: pull set -a ;\ . ./swarm/.env ;\ set +a ;\ + echo "Removing old immutable configs..." ;\ + docker config rm grafana_grafana_prometheus_datasource 2>/dev/null || true ;\ docker stack deploy --compose-file ./swarm/grafana.yml grafana ;\ } deploy-prometheus: pull @@ -237,6 +239,8 @@ deploy-prometheus: pull set -a ;\ . ./swarm/.env ;\ set +a ;\ + echo "Removing old immutable config..." ;\ + docker config rm prometheus_prometheus_config 2>/dev/null || true ;\ docker stack deploy --compose-file ./swarm/prometheus.yml prometheus ;\ } deploy-nodepad: pull