dustin.web/ci/Jenkinsfile

39 lines
731 B
Groovy

// vim: set ft=groovy sw=4 ts=4 sts=4 et :
pipeline {
agent {
kubernetes {
yaml 'ci/podTemplate.yaml'
}
}
options {
disableConcurrentBuilds()
}
stages {
stage('Build') {
steps {
container('zola') {
sh 'zola build --base-url /'
}
container('python') {
sh '. ci/build.sh'
}
}
}
stage('Publish') {
steps {
container('rsync') {
sshagent(['jenkins-web']) {
sh '. ci/publish.sh'
}
}
}
}
}
}