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