From cc067b91801f52f8763c5bca2143cc6a1a2bfbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Sun, 17 Oct 2021 06:17:10 +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..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) + } + } +}