This commit is contained in:
2026-02-28 09:17:09 +03:00
parent 4da25f3e62
commit c0d1b32aa1

14
Jenkinsfile vendored
View File

@@ -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/'
}
}
}