Store CI values relative to specific versions into directories
This MR is a proposal for answering sylva-projects/sylva-core#1550 (closed)
CI values are now in different folders:
- a folder
commonfor all values usable in any case - a folder
currentfor values usable on main and dev branches - a folder per specific versions (currently
1.1.1)
Sylva-core side implementation uses filenames to apply a given change:
- if a requested file exists in
common, it will be applied first - if the same file exists in specific version, it will also be applied afterwards
So CI values can be stored with the following logic:
- if a value file is suitable for any version, it can simply be stored in
common - if a value file is partially suitable for any version but some changes/patch are needed for some specific versions, the file can be put in
commonfolder and a file with the same name containing only changes can be put in version folder(s) - If a value file is only suitable for current version (main and dev branches) it can be store in
currentfolder - If a value file is completely different between current and previous versions (no easy value overwrite), files with same name but different values can be stored in each version folders.
The sylva-core side implementation is done in sylva-projects/sylva-core!2960 (merged). This MR mainly changes the update_values_file to be able to apply required values files based on this name and tested version.
Edited by Médéric de Verdilhac