Update Jenkinsfile
This commit is contained in:
parent
eff59303bf
commit
38b91d6fc9
1 changed files with 9 additions and 2 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue