diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..97c6258 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +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") + } + } + } + } +} \ No newline at end of file