From b7b36548f44437a61e47d3a92b211917a8d576e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Sun, 17 Oct 2021 10:34:30 +0300 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6ec09af --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,20 @@ +#!/usr/bin/groovy +image = "mongo-logger" +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) + } + } +}