2020-10-10 07:15:24 +02:00
|
|
|
pipeline {
|
2020-10-10 07:36:51 +02:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'silex/emacs:27.1-alpine-dev'
|
|
|
|
args '-u root --privileged'
|
|
|
|
}
|
|
|
|
}
|
2020-09-21 10:44:42 +02:00
|
|
|
|
2020-10-10 07:15:24 +02:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
2020-10-10 07:20:16 +02:00
|
|
|
steps {
|
2020-10-10 07:38:41 +02:00
|
|
|
sh 'cask'
|
2020-10-10 07:20:16 +02:00
|
|
|
sh 'make'
|
|
|
|
stash includes: 'public/*', name: 'public_html'
|
|
|
|
}
|
2020-09-21 10:44:42 +02:00
|
|
|
}
|
|
|
|
|
2020-10-10 07:15:24 +02:00
|
|
|
stage('Deploy') {
|
2020-10-10 07:20:16 +02:00
|
|
|
steps {
|
|
|
|
unstash 'public_html'
|
2020-09-21 10:44:42 +02:00
|
|
|
|
2020-10-10 07:20:16 +02:00
|
|
|
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|