deploy: exclude archived image build outputs
This commit is contained in:
parent
8f2e03df2a
commit
84b283f5b6
@ -148,6 +148,7 @@ deploy_node() {
|
||||
rsync -az --delete \
|
||||
--exclude='.git' --exclude='node_modules' --exclude='target/debug' \
|
||||
--exclude='.codex-target-*' --exclude='.codex-tmp' \
|
||||
--exclude='image-recipe/_archived/build' --exclude='image-recipe/_archived/results' \
|
||||
--exclude='target/release/deps' --exclude='target/release/build' \
|
||||
--exclude='target/release/.fingerprint' --exclude='target/release/incremental' \
|
||||
--exclude='web/dist' --exclude='.DS_Store' --exclude='image-recipe/build' \
|
||||
|
||||
@ -164,6 +164,7 @@ if [[ "$DRY_RUN" == "true" ]]; then
|
||||
echo "Files that would be synced:"
|
||||
rsync -avn --exclude '.git' --exclude 'target' --exclude 'node_modules' \
|
||||
--exclude 'dist' --exclude 'web/dist' --exclude '*.iso' \
|
||||
--exclude 'image-recipe/_archived/build' --exclude 'image-recipe/_archived/results' \
|
||||
--exclude '.codex-target-*' --exclude '.codex-tmp' \
|
||||
"$PROJECT_DIR/" "$TARGET_HOST:$TARGET_DIR/" 2>/dev/null | \
|
||||
grep -E '^[<>]|^deleting' | head -50 || echo " (rsync check failed — SSH may be unavailable)"
|
||||
@ -551,6 +552,8 @@ rsync -avz --delete \
|
||||
--exclude '.codex-tmp' \
|
||||
--exclude 'image-recipe/build' \
|
||||
--exclude 'image-recipe/results' \
|
||||
--exclude 'image-recipe/_archived/build' \
|
||||
--exclude 'image-recipe/_archived/results' \
|
||||
"$PROJECT_DIR/" "$TARGET_HOST:$TARGET_DIR/"
|
||||
section_end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user