htpasswd/Jenkinsfile

29 lines
489 B
Plaintext
Raw Normal View History

2019-06-20 12:49:32 -04:00
pipeline {
environment {
2019-06-20 12:50:32 -04:00
registry = 'jcabillot/htpasswd'
2019-06-20 12:49:32 -04:00
registryCredential = 'dockerhub_jcabillot'
2019-06-20 12:53:48 -04:00
dockerImage = ''
2019-06-20 12:49:32 -04:00
}
agent any
stages {
stage('Building image') {
steps{
script {
2019-06-20 12:57:04 -04:00
dockerImage = docker.build registry + ":latest"
2019-06-20 12:49:32 -04:00
}
}
}
2019-06-20 12:52:52 -04:00
stage('Deploy Image') {
steps{
script {
docker.withRegistry('', registryCredential) {
dockerImage.push()
}
}
}
}
2019-06-20 12:49:32 -04:00
}
}