Update Jenkinsfile

This commit is contained in:
ahoemann 2025-02-14 08:52:08 +01:00
parent eff59303bf
commit 38b91d6fc9

11
Jenkinsfile vendored
View file

@ -1,5 +1,5 @@
pipeline { pipeline {
agent any agent { dockerfile true }
stages { stages {
stage('Pull Alpine Image') { stage('Pull Alpine Image') {
steps { steps {
@ -12,9 +12,16 @@ pipeline {
} }
} }
} }
stage('Deploy') { stage('Build') {
steps { steps {
script { 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()
} }
} }
} }