diff --git a/.forgejo/workflows/ci-cd-web-desktop.yml b/.forgejo/workflows/ci-cd-web-desktop.yml index 0a802f2..0d958c1 100644 --- a/.forgejo/workflows/ci-cd-web-desktop.yml +++ b/.forgejo/workflows/ci-cd-web-desktop.yml @@ -241,13 +241,15 @@ jobs: DEST="$HOME/apps/sistema" mkdir -p "$DEST" mkdir -p "$DEST/.next/static" - 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 + # Corrigir permissoes para o runner (UID 999) + RUNNER_UID=$(id -u) + RUNNER_GID=$(id -g) + docker run --rm -v "$DEST":/target alpine:3 sh -lc "chown -R $RUNNER_UID:$RUNNER_GID /target 2>/dev/null || true; chmod -R u+rwX /target 2>/dev/null || true" || true if [ -d "$EFFECTIVE_APP_DIR/.next/static" ]; then rsync -a \ "$EFFECTIVE_APP_DIR/.next/static/" "$DEST/.next/static/" fi rsync -a --delete \ - --chown=1000:1000 \ --exclude '.pnpm-store' --exclude '.pnpm-store/**' \ --exclude '.next/static' \ "$EFFECTIVE_APP_DIR"/ "$DEST"/