ci: rsync resiliente a perms (no-times + inplace + sudo fallback)\n\n- Adiciona --no-times e --inplace para evitar settime/mkstemp.\n- Tenta rsync normal; se falhar por permissão, repete com sudo -n.\n- Mantém filtros e delete como antes.
This commit is contained in:
parent
de746890e7
commit
c99c9bfe78
1 changed files with 44 additions and 4 deletions
44
.github/workflows/ci-cd-web-desktop.yml
vendored
44
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -72,7 +72,27 @@ jobs:
|
||||||
- name: Sync workspace to APP_DIR (preserving local env)
|
- name: Sync workspace to APP_DIR (preserving local env)
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$APP_DIR"
|
mkdir -p "$APP_DIR"
|
||||||
rsync -az --no-perms --no-owner --no-group --delete \
|
RSYNC_FLAGS="-az --inplace --no-times --no-perms --no-owner --no-group --delete"
|
||||||
|
rsync $RSYNC_FLAGS \
|
||||||
|
--filter='protect node_modules' \
|
||||||
|
--filter='protect node_modules/**' \
|
||||||
|
--filter='protect .pnpm-store' \
|
||||||
|
--filter='protect .pnpm-store/**' \
|
||||||
|
--filter='protect .env' \
|
||||||
|
--filter='protect .env*' \
|
||||||
|
--filter='protect apps/desktop/.env*' \
|
||||||
|
--filter='protect convex/.env*' \
|
||||||
|
--exclude '.git' \
|
||||||
|
--exclude '.next' \
|
||||||
|
--exclude 'node_modules' \
|
||||||
|
--exclude 'node_modules/**' \
|
||||||
|
--exclude '.pnpm-store' \
|
||||||
|
--exclude '.pnpm-store/**' \
|
||||||
|
--exclude '.env*' \
|
||||||
|
--exclude 'apps/desktop/.env*' \
|
||||||
|
--exclude 'convex/.env*' \
|
||||||
|
./ "$APP_DIR"/ \
|
||||||
|
|| sudo -n rsync $RSYNC_FLAGS \
|
||||||
--filter='protect node_modules' \
|
--filter='protect node_modules' \
|
||||||
--filter='protect node_modules/**' \
|
--filter='protect node_modules/**' \
|
||||||
--filter='protect .pnpm-store' \
|
--filter='protect .pnpm-store' \
|
||||||
|
|
@ -127,7 +147,27 @@ jobs:
|
||||||
- name: Sync workspace to APP_DIR (preserving local env)
|
- name: Sync workspace to APP_DIR (preserving local env)
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$APP_DIR"
|
mkdir -p "$APP_DIR"
|
||||||
rsync -az --no-perms --no-owner --no-group --delete \
|
RSYNC_FLAGS="-az --inplace --no-times --no-perms --no-owner --no-group --delete"
|
||||||
|
rsync $RSYNC_FLAGS \
|
||||||
|
--filter='protect node_modules' \
|
||||||
|
--filter='protect node_modules/**' \
|
||||||
|
--filter='protect .pnpm-store' \
|
||||||
|
--filter='protect .pnpm-store/**' \
|
||||||
|
--filter='protect .env' \
|
||||||
|
--filter='protect .env*' \
|
||||||
|
--filter='protect apps/desktop/.env*' \
|
||||||
|
--filter='protect convex/.env*' \
|
||||||
|
--exclude '.git' \
|
||||||
|
--exclude '.next' \
|
||||||
|
--exclude 'node_modules' \
|
||||||
|
--exclude 'node_modules/**' \
|
||||||
|
--exclude '.pnpm-store' \
|
||||||
|
--exclude '.pnpm-store/**' \
|
||||||
|
--exclude '.env*' \
|
||||||
|
--exclude 'apps/desktop/.env*' \
|
||||||
|
--exclude 'convex/.env*' \
|
||||||
|
./ "$APP_DIR"/ \
|
||||||
|
|| sudo -n rsync $RSYNC_FLAGS \
|
||||||
--filter='protect node_modules' \
|
--filter='protect node_modules' \
|
||||||
--filter='protect node_modules/**' \
|
--filter='protect node_modules/**' \
|
||||||
--filter='protect .pnpm-store' \
|
--filter='protect .pnpm-store' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue