gilde-ci-cd/documentation/chapters/templates/releasing/set-version-template.adoc
2022-07-08 09:55:35 +02:00

29 lines
847 B
Plaintext

:sourcedir: ../../../../templates/
= set-version
This template provides the job for increasing the tag version.
For more details look at https://gitlab.exxcellent.de/gilden/ci/exxcellent-increase-version-tool[Gilde CI/CD: exxcellent-increase-version-tool].
.Variables
|===
|Name |Description | Default Value
|BUMP_VERSION | defines the version bump | "major"
|PREFIX | the prefix for the tag | ""
|OUTPUT | defines where the updated version is written to. Default case is an env File named Version.
Following Jobs will have set the $VERSION variable to the next version. | version.env
|SIMPLIFY
a|
* "false":
** use semver version number. e.g: 1.2.3+build.6
* "true":
** use more traditional version number. e.g: 1.2.3.6 | "false"
|===
.set-version-template
[source, yaml]
----
include::{sourcedir}/releasing/set-version.gitlab-ci.yml[]
----