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() } } }