getting-started/Jenkinsfile
Stefan Scherer a9a4a1fca0
Add Jenkinsfile to push image
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
2020-07-02 19:31:59 +02:00

22 lines
531 B
Groovy

pipeline {
options {
timeout(time: 1, unit: 'HOURS')
}
agent {
label 'ubuntu-1804 && amd64 && docker'
}
stages {
stage('build and push') {
when {
branch 'master'
}
sh "docker build docker/getting-started ."
steps {
withDockerRegistry([url: "", credentialsId: "dockerbuildbot-index.docker.io"]) {
sh("docker push docker/getting-started")
}
}
}
}
}