From 3180d799faa56d1319fc535a1a33258adea7191e Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 17 Jun 2026 10:17:43 +0000 Subject: [PATCH] fix: remove double build, use rsync --- .woodpecker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9ba29e6..9ef1b8d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -20,9 +20,11 @@ steps: DEPLOY_KEY: from_secret: deploy_key commands: - - apk add --no-cache openssh + - apk add --no-cache openssh rsync - mkdir -p /ssh - echo "$DEPLOY_KEY" > /ssh/deploy_key - chmod 600 /ssh/deploy_key - - ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no root@192.168.1.80 'cd /opt/min-chat && git pull origin main && cd server && npm install --omit=dev && cd .. && cd client && npm install && npm run build && cd .. && cp -r client/dist/* /var/www/html/ 2>/dev/null || true && systemctl restart chat-app' + - ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no root@192.168.1.80 'cd /opt/min-chat && git pull origin main && cd server && npm install --omit=dev && cd ..' + - rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.80:/var/www/html/ + - ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no root@192.168.1.80 'systemctl restart chat-app' depends_on: [build]