2020-10-10 07:15:24 +02:00
|
|
|
pipeline {
|
|
|
|
agent { dockerfile true }
|
2020-09-21 10:44:42 +02:00
|
|
|
|
2020-10-10 07:15:24 +02:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
2020-09-21 10:44:42 +02:00
|
|
|
sh 'make'
|
|
|
|
stash includes: 'public/*', name: 'public_html'
|
|
|
|
}
|
|
|
|
|
2020-10-10 07:15:24 +02:00
|
|
|
stage('Deploy') {
|
2020-09-21 10:44:42 +02:00
|
|
|
unstash 'public_html'
|
|
|
|
|
|
|
|
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
2020-09-27 01:20:18 +02:00
|
|
|
sh 'rsync -e "ssh -p 4511 -i $KEY_FILE" -v -c -r --delete public/ "site@ryuslash.org:public_html/"'
|
2020-09-21 10:44:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|