summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..6af2a4e
--- /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 -t docker/getting-started ."
+
+ steps {
+ withDockerRegistry([url: "", credentialsId: "dockerbuildbot-index.docker.io"]) {
+ sh("docker push docker/getting-started")
+ }
+ }
+ }
+ }
+}