From c0d1b32aa1cd993a5bcfdb5ca8121b8394866125 Mon Sep 17 00:00:00 2001 From: me Date: Sat, 28 Feb 2026 09:17:09 +0300 Subject: [PATCH] upd --- Jenkinsfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a386ae..0426f10 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,20 @@ pipeline { agent any stages { + stage('Install') { + steps { + sh 'npm install' + } + } + stage('Build') { + steps { + sh 'npm run build' + } + } stage('Deploy') { steps { - sshagent(['vps-ssh-key']) { - sh 'scp -o StrictHostKeyChecking=no index.html fymio@172.17.0.1:/var/www/fymio.us/' + sshagent(['fymio']) { + sh 'scp -o StrictHostKeyChecking=no -r dist/* fymio@172.17.0.1:/var/www/fymio.us/' } } }