Skip to content

Commit

Permalink
Add Jenkinsfile to push image
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Scherer <[email protected]>
  • Loading branch information
StefanScherer committed Jul 2, 2020
1 parent 823b0d4 commit a9a4a1f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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")
}
}
}
}
}

0 comments on commit a9a4a1f

Please sign in to comment.