CI: drop rsync dep in build-site.sh; move MySQL migration job to internal CI (ARC has no service containers)

This commit is contained in:
2026-07-20 09:01:59 -04:00
parent 5e33189cd9
commit ffe9fa1cce
2 changed files with 13 additions and 72 deletions

View File

@@ -57,12 +57,15 @@ echo "==> Building frontend (SITE_PLUGINS=$CLOSURE) ..."
echo "==> Staging backend into $OUT ..."
rm -rf "$OUT"
mkdir -p "$OUT/plugins"
rsync -a --exclude '__pycache__' --exclude '*.pyc' "$REPO/shopdb" "$OUT/"
# cp (not rsync) so a minimal runner/deploy box without rsync can stage;
# bytecode is pruned afterwards to match the old --exclude filters.
cp -a "$REPO/shopdb" "$OUT/"
for name in ${CLOSURE//,/ }; do
rsync -a --exclude '__pycache__' --exclude '*.pyc' \
"$REPO/plugins/$name" "$OUT/plugins/"
cp -a "$REPO/plugins/$name" "$OUT/plugins/"
done
cp -r "$REPO/frontend/dist" "$OUT/frontend-dist"
find "$OUT" -type d -name '__pycache__' -prune -exec rm -rf {} +
find "$OUT" -type f -name '*.pyc' -delete
echo ""
echo "Lean site staged at: $OUT"