31 lines
641 B
Groovy
31 lines
641 B
Groovy
pipeline {
|
|
agent any
|
|
triggers {
|
|
cron "@monthly"
|
|
}
|
|
options {
|
|
timestamps()
|
|
ansiColor("xterm")
|
|
disableConcurrentBuilds()
|
|
}
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
sh "docker build -t git.sudo.is/ben/socat-dns:latest ."
|
|
}
|
|
}
|
|
stage('push') {
|
|
steps {
|
|
sh "docker push git.sudo.is/ben/socat-dns:latest"
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup {
|
|
cleanWs(deleteDirs: true,
|
|
disableDeferredWipeout: true,
|
|
notFailBuild: true)
|
|
}
|
|
}
|
|
}
|