From 38b91d6fc99009badfd36f4947cc60df37fa8030 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Fri, 14 Feb 2025 08:52:08 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2452bbd..347dc1b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent any + agent { dockerfile true } stages { stage('Pull Alpine Image') { steps { @@ -12,9 +12,16 @@ pipeline { } } } - stage('Deploy') { + stage('Build') { steps { script { + docker.withRegistry('https://git.adrianux.net/ahoemann/') { + + /* Build the container image */ + def dockerImage = docker.build("adrianux:${env.BUILD_ID}") + + /* Push the container to the custom Registry */ + dockerImage.push() } } }