htpasswd/Jenkinsfile
Julien Cabillot 0f025918af
Some checks failed
perso/htpasswd/master There was a failure building this commit
Add deploy
2019-06-20 12:53:48 -04:00

30 lines
476 B
Groovy

pipeline {
environment {
registry = 'jcabillot/htpasswd'
registryCredential = 'dockerhub_jcabillot'
dockerImage = ''
}
agent any
stages {
stage('Building image') {
steps{
script {
docker.build registry + ":master"
}
}
}
stage('Deploy Image') {
steps{
script {
docker.withRegistry('', registryCredential) {
dockerImage.push()
}
}
}
}
}
}