diff --git a/deployment/cicd/Jenkinsfile b/deployment/cicd/Jenkinsfile index 8964f1b..4c33e25 100644 --- a/deployment/cicd/Jenkinsfile +++ b/deployment/cicd/Jenkinsfile @@ -168,23 +168,24 @@ podTemplate( # 환경별 디렉토리로 이동 cd deployment/cicd/kustomize/overlays/${environment} - - # 이미지 태그 업데이트 """ + + // 이미지 태그 업데이트 services.each { service -> sh "\$HOME/bin/kustomize edit set image acrdigitalgarage01.azurecr.io/phonebill/${service}:${environment}-${imageTag}" } + sh """ # 매니페스트 적용 kubectl apply -k . # 배포 상태 확인 echo "Waiting for deployments to be ready..." """ + services.each { service -> sh "kubectl -n phonebill-${environment} wait --for=condition=available deployment/${service} --timeout=300s" } - """ } }