feat(pipeline): add logging for ArgoApplicationVersionUpdater during environment updates

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-07 01:31:58 +08:00
parent 2c00823bd7
commit 7c3f9a339e

View File

@ -21,6 +21,7 @@ class ArgoApplicationVersionUpdater {
steps.dir("${workspace}") {
def valuesFile = "./${configurations.serviceName}/helm-pkg/${component.name}/values.${environmentSlug}.yaml"
steps.log.info("ArgoApplicationVersionUpdater", "[${environmentSlug}] Update ${valuesFile}...")
def data = steps.readYaml(file: valuesFile)
data[component.name].image.registry = steps.env.BUILD_IMAGE_REGISTRY
data[component.name].image.repository = steps.env.BUILD_IMAGE_REPOSITORY