Version File Scripting Prepare Recipe
Montuer has a continuously developed prepare recipe dedicated for scripting
repository version into version file.
The objective is simple: to prepare the version file (e.g.
VERSION or version.go) in a consistent and
reproducible manner.
All users has to do is to issue this command:
|
|
For this recipe, they are arranged based on its own semantic versioning and is not directly related to Monteur's actual release version. Hence, feel free to explore and update each versions to suit your CI needs.
Resources
This recipe is built and maintained based on the following resources:
Monteur Prepare Data Structure - https://monteur.zoralab.com/en/ci-jobs/prepare/
Recipe File
Here are all the Monteur Prepare CI Job recipe files
for operating Version File Scripting semi-autonomously.
They are sorted by the latest version first, at the top.
Please read through its requiremnets and changes before
procuring.
Version v2.0.0
Download Link: version-file-v2p0p0.toml
Minimum Requirements
Montuer version:
v0.0.2and above.Supported platform: STRICTLY depends on
MonteurandGitavailability.
Installation Instructions
Download and place the recipe file into your
.configs/monteur/prepare/jobsdirectory asversion-file-[SOFTWARE].tomlpattern likeversion-file.tomlorversion-file-go.toml.Update the recipe's
Metadata.Namefor matching the version file format you're generating (e.g. append(Go)if you're generating Go source code aside from standard version file).Update the recipe's
Variables.Prefixto add any prefix content used inFMTVariables.Contentconstruction later. Otherwise, please leave it blank.Update the recipe's
FMTVariables.Filepathto specify the path to the destination file.Update the recipe's
FMTVariables.Contentto construct the exact content of the version file. Default has all the ciritical variables listed in.
Changelog
NOT BACKWARD COMPATBILE - Corrected
FMTVariables.CodeFilepathtoFMTVariables.Filepathfor destination file and set default value to{{- .RootDir -}}/VERSION.NOT BACKWARD COMPATBILE - Abstracted
FMTVariables.Contentfor file content constructions matching other file format requirements like license heading and etc.NOT BACKWARD COMPATBILE - Merged the now deleted Version Go File Scripting recipe.
BACKWARD COMPATBILE - Renamed the default
Metadata.Nameto generic name.BACKWARD COMPATBILE - Updated the default
Metadata.Descriptionto a generic content.BACKWARD COMPATBILE - Corrected all CEU with names and new variables to ensure algorithm is clean and flexible.
Version v1.0.0
Download Link: version-file-v1p0p0.toml
Minimum Requirements
Montuer version:
v0.0.2and above.Supported platform: STRICTLY depends on
MonteurandGitavailability.
Installation Instructions
Download and place the recipe file into your
.configs/monteur/prepare/jobsdirectory asversion-file.toml.Update the recipe's
Variables.CodeFilepathpointing to the destination filepath.
Changelog
BACKWARD COMPATBILE - Created the base TOML configuration recipe.
BACKWARD COMPATBILE - Tested with GitLab CI.
Epilogue
That's all for Monteur's Prepare CI Job handling Version File
Scripting update tasks.
If you have any question, please feel free to raise your
question at our Issues
Section.