htpasswd/Jenkinsfile
Julien Cabillot 72818a07cc
Some checks failed
perso/htpasswd/master There was a failure building this commit
Add deploy
2019-06-20 12:52:52 -04:00

29 lines
455 B
Groovy

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