fix(deploy): fall back to active Falukant models
All checks were successful
Deploy to production / deploy (push) Successful in 2m49s

This commit is contained in:
Torsten Schulz (local)
2026-09-28 16:03:12 +02:00
parent 314bf2ca3b
commit 7714a8edc8

View File

@@ -83,9 +83,18 @@ git -C "$ASSETS_DIR" lfs pull
ASSET_MODELS_DIR="$ASSETS_DIR/models-src/3d/falukant" ASSET_MODELS_DIR="$ASSETS_DIR/models-src/3d/falukant"
if [ ! -d "$ASSET_MODELS_DIR/characters" ]; then if [ ! -d "$ASSET_MODELS_DIR/characters" ]; then
echo "ERROR: Falukant models are missing from ${FALUKANT_MODELS_REPOSITORY}@${FALUKANT_MODELS_REF}" >&2 # Keep deployments available while the dedicated LFS repository is being
# populated. The active slot has already been built with these sources,
# so it is a safe, read-only fallback for the new inactive slot.
FALLBACK_MODELS_DIR="$CURRENT_FRONTEND/models-src/3d/falukant"
if [ -d "$FALLBACK_MODELS_DIR/characters" ]; then
echo "WARN: Falukant models are missing from ${FALUKANT_MODELS_REPOSITORY}@${FALUKANT_MODELS_REF}; nutze Modelle aus dem aktiven Slot." >&2
ASSET_MODELS_DIR="$FALLBACK_MODELS_DIR"
else
echo "ERROR: Falukant models are missing from ${FALUKANT_MODELS_REPOSITORY}@${FALUKANT_MODELS_REF} and from the active slot" >&2
exit 1 exit 1
fi fi
fi
echo "Übernehme Falukant-3D-Quellmodelle..." echo "Übernehme Falukant-3D-Quellmodelle..."
rm -rf "$FRONTEND_DIR/models-src/3d/falukant" rm -rf "$FRONTEND_DIR/models-src/3d/falukant"