From 784b48548b57819435ffd9c4ca7c9c854f2d142b Mon Sep 17 00:00:00 2001 From: hjmoons Date: Thu, 30 Oct 2025 21:00:42 +0900 Subject: [PATCH] Jenkinsfile: Update manifest repo to modify overlays/dev/kustomization.yaml - Change target from base/deployment.yaml to overlays/dev/kustomization.yaml - Update images section's newTag for 4 services (user, meeting, stt, notification) - Keep other services (ai, ai-python, rag) unchanged --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4631cca..b799ee7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -163,22 +163,22 @@ podTemplate( git clone https://\${GIT_USERNAME}:\${GIT_TOKEN}@\${REPO_URL} manifest-repo cd manifest-repo - # 각 서비스별 이미지 태그 업데이트 (sed 사용) - cd hgzero-back/kustomize/base + # overlays/dev/kustomization.yaml의 images 섹션 업데이트 + cd hgzero-back/kustomize/overlays/dev services="user meeting stt notification" for service in \$services; do - echo "Updating \$service image tag..." - sed -i "s|image: ${registry}/${imageOrg}/\$service:.*|image: ${registry}/${imageOrg}/\$service:${environment}-${imageTag}|g" \\ - \$service/deployment.yaml + echo "Updating \$service image tag in kustomization.yaml..." + sed -i "s|name: ${registry}/${imageOrg}/\$service\$|name: ${registry}/${imageOrg}/\$service|g" kustomization.yaml + sed -i "/name: ${registry}\\/${imageOrg}\\/\$service\$/!b;n;s|newTag:.*|newTag: ${environment}-${imageTag}|" kustomization.yaml # 변경 사항 확인 - echo "Updated \$service deployment.yaml:" - grep "image: ${registry}/${imageOrg}/\$service" \$service/deployment.yaml + echo "Updated \$service image tag:" + grep -A1 "name: ${registry}/${imageOrg}/\$service" kustomization.yaml done # Git 설정 및 푸시 - cd ../../.. + cd ../../../.. git config user.name "Jenkins" git config user.email "jenkins@hgzero.com" git add .