This commit is contained in:
parent
0fe9373c56
commit
b166db12a4
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -17,17 +17,15 @@ pipeline {
|
||||
|
||||
stage('Build image') {
|
||||
steps{
|
||||
/* This builds the actual image; synonymous to
|
||||
* docker build on the command line */
|
||||
app = docker.build("jcabillot/jenkins-wdocker")
|
||||
sh "docker build -t jcabillot/jenkins-wdocker ."
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy Image') {
|
||||
steps{
|
||||
script {
|
||||
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
|
||||
app.push("latest")
|
||||
withDockerRegistry(url: 'https://registry.hub.docker.com', credentialsId: 'docker-hub-credentials') {
|
||||
sh 'docker push jcabillot/jenkins-wdocker'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user