690326:2306 Fixing Refactor ADR-019 Naming convention uuid #10
CI / CD Pipeline / build (push) Successful in 5m37s
CI / CD Pipeline / deploy (push) Successful in 2m30s

This commit is contained in:
2026-03-26 23:06:09 +07:00
parent 54f6044e93
commit 50b6a0f901
+6 -5
View File
@@ -113,9 +113,8 @@ jobs:
mkdir -p /share/np-dms/app/logs mkdir -p /share/np-dms/app/logs
# Clear Docker build cache to ensure fresh builds # Note: Docker build cache is preserved for faster builds
echo "🧹 Clearing Docker build cache..." # Only prune cache manually when needed: docker builder prune -f
docker builder prune -f || true
echo "🚀 Executing deployment..." echo "🚀 Executing deployment..."
./scripts/deploy.sh ./scripts/deploy.sh
@@ -132,8 +131,10 @@ jobs:
echo "🚀 Deployment attempt $attempt/$max_attempts..." echo "🚀 Deployment attempt $attempt/$max_attempts..."
if echo "$REMOTE_SCRIPT" | sshpass -p "${{ secrets.PASSWORD }}" ssh -o StrictHostKeyChecking=no \ if echo "$REMOTE_SCRIPT" | sshpass -p "${{ secrets.PASSWORD }}" ssh -o StrictHostKeyChecking=no \
-o ConnectTimeout=30 \ -o ConnectTimeout=60 \
-o ServerAliveInterval=60 \ -o ServerAliveInterval=30 \
-o ServerAliveCountMax=60 \
-o TCPKeepAlive=yes \
-p ${{ secrets.PORT }} ${{ secrets.USERNAME }}@${{ secrets.HOST }} 'bash -s'; then -p ${{ secrets.PORT }} ${{ secrets.USERNAME }}@${{ secrets.HOST }} 'bash -s'; then
echo "✅ Deployment successful!" echo "✅ Deployment successful!"
exit 0 exit 0