diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..3e1f19d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,20 @@ +#!/usr/bin/groovy +image = "mongo-logger" +label = "daily" +build = null + +node { + stage("Checkout") { + checkout scm + } + + stage("Build") { + build = docker.build("kspaceee/${image}", "--no-cache ./") + } + + stage("Push") { + docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") { + build.push(label) + } + } +}