From 50b6a0f9010247202a2ce69d153e5c6bab6147c8 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 26 Mar 2026 23:06:09 +0700 Subject: [PATCH] 690326:2306 Fixing Refactor ADR-019 Naming convention uuid #10 --- .gitea/workflows/ci-deploy.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index bf7b3da..a008cd6 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -113,9 +113,8 @@ jobs: mkdir -p /share/np-dms/app/logs - # Clear Docker build cache to ensure fresh builds - echo "๐Ÿงน Clearing Docker build cache..." - docker builder prune -f || true + # Note: Docker build cache is preserved for faster builds + # Only prune cache manually when needed: docker builder prune -f echo "๐Ÿš€ Executing deployment..." ./scripts/deploy.sh @@ -132,8 +131,10 @@ jobs: echo "๐Ÿš€ Deployment attempt $attempt/$max_attempts..." if echo "$REMOTE_SCRIPT" | sshpass -p "${{ secrets.PASSWORD }}" ssh -o StrictHostKeyChecking=no \ - -o ConnectTimeout=30 \ - -o ServerAliveInterval=60 \ + -o ConnectTimeout=60 \ + -o ServerAliveInterval=30 \ + -o ServerAliveCountMax=60 \ + -o TCPKeepAlive=yes \ -p ${{ secrets.PORT }} ${{ secrets.USERNAME }}@${{ secrets.HOST }} 'bash -s'; then echo "โœ… Deployment successful!" exit 0