mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-07-21 10:15:56 +00:00
feat: remove old immutable configs before deploying Grafana and Prometheus stacks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user