Jenkinsfile

Signed-off-by: wodnr533 <wodnr533@naver.com>
This commit is contained in:
wodnr533 2025-12-08 15:28:10 +09:00 committed by GitHub
parent 131d82a270
commit 0460604b6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

9
Jenkinsfile vendored
View file

@ -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"
}
}
}