Update Jenkinsfile

This commit is contained in:
Stas Bezuhlyi 2021-04-08 18:31:19 +03:00 committed by GitHub
parent 0c999cd7e8
commit 524c603075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Jenkinsfile vendored
View file

@ -27,10 +27,18 @@ pipeline {
steps {
echo 'Creating Docker Image...'
sh '''
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerdile
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerfile
'''
}
}
stage('Push artifact to docker registry') {
steps {
echo 'Push docker image tu registry'
withDockerRegistry(credentialsId: 'dockerhub_id') {
sh "docker push rodley/pet-clinic:${BUILD_NUMBER}"
}
}
}
stage('Deploy') {
steps {
echo 'Deploying....'