|
@@ -48,13 +48,13 @@ pipeline {
|
|
|
steps {
|
|
|
script {
|
|
|
echo "Update values.yaml"
|
|
|
- def data = readYaml file: VALUES_FILE_DEV
|
|
|
+ def data_build = readYaml file: VALUES_FILE_DEV
|
|
|
TAG_PATH_BUILD = "images." + DOCKER_IMAGE.split("/")[1] + ".build"
|
|
|
- TAG = yamlOps.getBuilder(TAG_PATH_BUILD, data)
|
|
|
- def data = readYaml file: VALUES_FILE_PROD
|
|
|
+ TAG = yamlOps.getBuilder(TAG_PATH_BUILD, data_build)
|
|
|
+ def data_stable = readYaml file: VALUES_FILE_PROD
|
|
|
TAG_PATH_STABLE = "images." + DOCKER_IMAGE.split("/")[1] + ".stable"
|
|
|
- yamlOps.updateBuilder(TAG_PATH_STABLE, data, TAG)
|
|
|
- writeYaml file: "${CHART_PATH}/values.yaml", data: data, overwrite: true
|
|
|
+ yamlOps.updateBuilder(TAG_PATH_STABLE, data_stable, TAG)
|
|
|
+ writeYaml file: "${CHART_PATH}/values.yaml", data: data_stable, overwrite: true
|
|
|
}
|
|
|
}
|
|
|
}
|