a9a4a1fca0
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
22 lines
531 B
Groovy
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")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |