mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
Jenkinsfile
Signed-off-by: wodnr533 <wodnr533@naver.com>
This commit is contained in:
parent
131d82a270
commit
0460604b6f
1 changed files with 6 additions and 3 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
|
@ -7,7 +7,7 @@ pipeline {
|
|||
}
|
||||
|
||||
environment {
|
||||
DOCKERHUB_CREDENTIALS = credentials('dockerCredentials')
|
||||
DOCKERHUB_CREDENTIALS = credentials('Docker-token')
|
||||
}
|
||||
|
||||
stages{
|
||||
|
|
@ -46,8 +46,11 @@ pipeline {
|
|||
}
|
||||
stage('Kubernetes Deploy') {
|
||||
steps {
|
||||
sh "kubectl set image deployment/petclinic workload=wodnr8174/spring-petclinic:latest"
|
||||
sh 'kubectl apply -f petclinic.yml'
|
||||
withKubeConfig([credentialsId: 'kubeconfig']) {
|
||||
sh 'kubectl apply -f postgres.yml'
|
||||
sh 'kubectl apply -f petclinic-deployment.yaml'
|
||||
sh 'kubectl apply -f petclinic-service.yaml'
|
||||
sh "kubectl set image deployment/petclinic workload=wodnr8174/spring-petclinic:latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue