ci(manifests): add prod manifests for magicleaps

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-18 02:33:12 +08:00
parent 0a1214acf7
commit 3ff3da08d4

View File

@ -21,12 +21,12 @@ class ArgoApplicationVersionUpdater {
steps.dir("${workspace}") {
def valuesFile = "./${configurations.serviceName}/helm-pkg/${configurations.serviceName}/values.${environmentSlug}.yaml"
def data = steps.readYaml (file: 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
data[component.name].image.tag = steps.env.BUILD_IMAGE_VERSION
data[component.name].image.name = steps.env.BUILD_IMAGE_NAME
steps.writeFile file: valuesFile, data: data, overwrite: true
steps.writeFile(file: valuesFile, data: data, overwrite: true)
steps.withCredentials([steps.usernamePassword(credentialsId: 'freeleaps-ops-credentials', passwordVariable: 'OPS_GIT_PASSWORD', usernameVariable: 'OPS_GIT_USERNAME')]) {
steps.sh """