From c585abab8e92f9bd8535e8efdd6a1b0fd9787156 Mon Sep 17 00:00:00 2001 From: "@kirill.komarov" Date: Wed, 17 Jun 2026 15:05:05 +0500 Subject: [PATCH] test --- .woodpecker.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b2dd69b..b9dec95 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,16 +3,16 @@ when: event: [push, manual] steps: - install-client: + install: image: node:20 commands: - cd client && npm install - build-client: + build: image: node:20 commands: - cd client && npm run build - depends_on: [install-client] + depends_on: [install] deploy: image: alpine:latest @@ -24,12 +24,5 @@ steps: - 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 - ' - depends_on: [build-client] + - 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' + depends_on: [build]