ci: evitar rsync delete de .next.old* e forcar fallback no convex_deploy
This commit is contained in:
parent
d34fad394f
commit
8e1575e2a5
1 changed files with 8 additions and 10 deletions
18
.github/workflows/ci-cd-web-desktop.yml
vendored
18
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -122,6 +122,8 @@ jobs:
|
||||||
EXCLUDE_ENV=""
|
EXCLUDE_ENV=""
|
||||||
fi
|
fi
|
||||||
rsync $RSYNC_FLAGS \
|
rsync $RSYNC_FLAGS \
|
||||||
|
--filter='protect .next.old*' \
|
||||||
|
--exclude '.next.old*' \
|
||||||
--filter='protect node_modules' \
|
--filter='protect node_modules' \
|
||||||
--filter='protect node_modules/**' \
|
--filter='protect node_modules/**' \
|
||||||
--filter='protect .pnpm-store' \
|
--filter='protect .pnpm-store' \
|
||||||
|
|
@ -193,19 +195,13 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Determine writable APP_DIR
|
- name: Determine APP_DIR (fallback safe path)
|
||||||
id: appdir
|
id: appdir
|
||||||
run: |
|
run: |
|
||||||
DEFAULT_DIR="${APP_DIR:-/srv/apps/sistema}"
|
|
||||||
FALLBACK_DIR="$HOME/apps/sistema"
|
FALLBACK_DIR="$HOME/apps/sistema"
|
||||||
TARGET_DIR="$DEFAULT_DIR"
|
mkdir -p "$FALLBACK_DIR"
|
||||||
mkdir -p "$TARGET_DIR" 2>/dev/null || true
|
echo "Using APP_DIR (fallback)=$FALLBACK_DIR"
|
||||||
if ! (test -d "$TARGET_DIR" && test -w "$TARGET_DIR"); then
|
echo "EFFECTIVE_APP_DIR=$FALLBACK_DIR" >> "$GITHUB_ENV"
|
||||||
TARGET_DIR="$FALLBACK_DIR"
|
|
||||||
mkdir -p "$TARGET_DIR"
|
|
||||||
fi
|
|
||||||
echo "Using APP_DIR=$TARGET_DIR"
|
|
||||||
echo "EFFECTIVE_APP_DIR=$TARGET_DIR" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Sync workspace to APP_DIR (preserving local env)
|
- name: Sync workspace to APP_DIR (preserving local env)
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -216,6 +212,8 @@ jobs:
|
||||||
EXCLUDE_ENV=""
|
EXCLUDE_ENV=""
|
||||||
fi
|
fi
|
||||||
rsync $RSYNC_FLAGS \
|
rsync $RSYNC_FLAGS \
|
||||||
|
--filter='protect .next.old*' \
|
||||||
|
--exclude '.next.old*' \
|
||||||
--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