mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
sdasd
This commit is contained in:
parent
a8c071688c
commit
a8cef50b50
1 changed files with 8 additions and 7 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -28,15 +28,16 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('Login to dockerhub') {
|
stage('Login to dockerhub') {
|
||||||
steps {
|
steps {
|
||||||
docker.withRegistry('https://index.docker.io/v1/', 'piachsecki-dockerhub') {
|
withCredentials([usernamePassword(credentialsId: 'piachsecki-dockerhub',
|
||||||
echo 'Logged into DockerHub'
|
usernameVariable: 'DOCKERHUB_USER',
|
||||||
}
|
passwordVariable: 'DOCKERHUB_PASS')]) {
|
||||||
|
sh 'echo $DOCKERHUB_PASS | docker login -u $DOCKERHUB_USER --password-stdin'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
stage('Push') {
|
stage('Push') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker push piachsecki/spring-pet-clinic:latest'
|
sh 'docker push piachsecki/spring-pet-clinic:latest'
|
||||||
|
|
Loading…
Reference in a new issue