26 lines
No EOL
779 B
Groovy
26 lines
No EOL
779 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()
|
|
}
|
|
}
|
|
}
|
|
} |