Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tripura-kant authored Oct 7, 2022
1 parent 738df92 commit cb01698
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,15 @@ pipeline {
}
}
}

stage('Docker push ') {
steps {
withDockerRegistry(credentialsId: '5d445637-b47a-4cfc-acba-066b683371a2', url: '') {
sh "docker build -t docker-registry:5000/java-app:latest ."
sh 'docker push docker-registry:5000/java-app:latest'
}
}
}

}
}

0 comments on commit cb01698

Please sign in to comment.