upd
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -1,10 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
|
stage('Install') {
|
||||||
|
steps {
|
||||||
|
sh 'npm install'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'npm run build'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
sshagent(['vps-ssh-key']) {
|
sshagent(['fymio']) {
|
||||||
sh 'scp -o StrictHostKeyChecking=no index.html fymio@172.17.0.1:/var/www/fymio.us/'
|
sh 'scp -o StrictHostKeyChecking=no -r dist/* fymio@172.17.0.1:/var/www/fymio.us/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user