Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-11-28 11:33:06 +02:00 committed by GitHub
parent 43d6d7af8e
commit cbed61fc58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
Jenkinsfile vendored
View file

@ -50,9 +50,16 @@ pipeline {
}
}
}
stage('Login to Dockerhub') {
steps {
echo "now we will login to dockerhub"
sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin'
}
}
stage('Push to DockerHub') {
steps {
echo "now we will push to the docker file"
sh 'docker push mihaivalentingeorgescu/imagine_spring_petclinic:0.1'
}
}
stage('Change stages') {