ci(web): fix permission errors publishing to stable APP_DIR (docker chown+chmod, exclude .pnpm-store); runtime: use container-local PNPM store to avoid host writes

This commit is contained in:
Esdras Renan 2025-10-16 15:08:12 -03:00
parent 009291f6a2
commit 945b29f317
3 changed files with 11 additions and 2 deletions

View file

@ -183,7 +183,12 @@ jobs:
set -e
DEST="$HOME/apps/sistema"
mkdir -p "$DEST"
rsync -a --delete "$EFFECTIVE_APP_DIR"/ "$DEST"/
# One-time fix for old root-owned files (esp. .pnpm-store) left by previous containers
docker run --rm -v "$DEST":/target alpine:3 sh -lc 'chown -R 1000:1000 /target 2>/dev/null || true; chmod -R u+rwX /target 2>/dev/null || true' || true
# Publish new build; exclude .pnpm-store to avoid Permission denied on old entries
rsync -a --delete \
--exclude '.pnpm-store' --exclude '.pnpm-store/**' \
"$EFFECTIVE_APP_DIR"/ "$DEST"/
echo "Published build to: $DEST"
- name: Swarm deploy (stack.yml)