mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
Jenkins Kustomize 명령어 개선
- kustomize 명령어를 명시적 경로(/Users/dreamondal/bin/kustomize) 사용 - 이미지 태그 업데이트를 반복문으로 리팩토링 - 배포 상태 확인도 반복문으로 개선 - 서비스 추가/삭제 시 유지보수성 향상 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c90253efd6
commit
2eea6c17b5
7
deployment/cicd/Jenkinsfile
vendored
7
deployment/cicd/Jenkinsfile
vendored
@ -171,21 +171,20 @@ podTemplate(
|
||||
|
||||
# 이미지 태그 업데이트
|
||||
"""
|
||||
|
||||
services.each { service ->
|
||||
sh "kustomize edit set image acrdigitalgarage01.azurecr.io/phonebill/${service}:${environment}-${imageTag}"
|
||||
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"
|
||||
}
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user