fix(infra): use dynamic path for registry volume to prevent prune failure
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m23s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m16s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m33s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
🏥 Server Maintenance / 🧹 Prune & Clean (push) Failing after 43s

This commit is contained in:
2026-05-06 12:24:19 +02:00
parent ac178ccbb0
commit 69c483ac46

View File

@@ -1,8 +1,14 @@
#!/bin/bash
set -e
# Configuration
REGISTRY_DATA="/mnt/HC_Volume_104575103/registry-data/docker/registry/v2"
# Find registry data dynamically (volume ID might change)
REGISTRY_DATA=$(find /mnt -maxdepth 5 -type d -path '*/registry-data/docker/registry/v2' | head -n 1)
if [ -z "$REGISTRY_DATA" ]; then
echo "❌ Registry data directory not found!"
exit 1
fi
KEEP_TAGS=3
echo "🏥 Starting Aggressive Registry & Docker Maintenance..."