Adrianux.net/Jenkinsfile
2025-03-20 14:38:24 +01:00

27 lines
No EOL
785 B
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('Pull Alpine Image') {
steps {
script {
// Pull the Alpine Docker image
dockerImage = docker.image('alpine:latest')
dockerImage.pull()
}
}
}
stage('Build') {
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()
}
}
}
}
}