From 2029131006b79f8b6de1fc14db9b64d4a5fd5056 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 31 Aug 2024 13:13:51 +0800 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index deaae51..2b212f9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,6 +2,9 @@ steps: - name: build & copy image: node:18-alpine + when: + - branch: master + event: push commands: - apk add --no-cache openssh-client - mkdir -p /root/.ssh/ @@ -12,7 +15,4 @@ steps: - npm run build - ssh root@10.0.10.4 'rm -rf /mnt/nvme/www/equipment_tracker_frontend/*' - scp -r dist/* root@10.0.10.4:/mnt/nvme/www/equipment_tracker_frontend - when: - - branch: master - event: push secrets: [SSH_KEY]