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.2
and above.Supported platform: STRICTLY depends on
Monteur
andGit
availability.
Installation Instructions
Download and place the recipe file into your
.configs/monteur/prepare/jobs
directory asversion-file-[SOFTWARE].toml
pattern likeversion-file.toml
orversion-file-go.toml
.Update the recipe's
Metadata.Name
for 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.Prefix
to add any prefix content used inFMTVariables.Content
construction later. Otherwise, please leave it blank.Update the recipe's
FMTVariables.Filepath
to specify the path to the destination file.Update the recipe's
FMTVariables.Content
to construct the exact content of the version file. Default has all the ciritical variables listed in.
Changelog
NOT BACKWARD COMPATBILE - Corrected
FMTVariables.CodeFilepath
toFMTVariables.Filepath
for destination file and set default value to{{- .RootDir -}}/VERSION
.NOT BACKWARD COMPATBILE - Abstracted
FMTVariables.Content
for 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.Name
to generic name.BACKWARD COMPATBILE - Updated the default
Metadata.Description
to 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.2
and above.Supported platform: STRICTLY depends on
Monteur
andGit
availability.
Installation Instructions
Download and place the recipe file into your
.configs/monteur/prepare/jobs
directory asversion-file.toml
.Update the recipe's
Variables.CodeFilepath
pointing 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.