Sometimes it is more convenient to use a branch (this enables you to have a stable reference for a version):
An example can be found in the [LINC](https://git.astron.nl/RD/LINC) repository where it additionally updates some files with a fixed version of a container image in the release step.
**IMPORTANT**: when making a tag/commit in CI, please add `[SKIP CI]` to prevent circular triggering of pipelines from pipelines.
-git commit -m "[SKIP CI] Replace latest with tag $RELEASE"
-git tag -a $RELEASE -m "[SKIP CI] Version $RELEASE created by gitlab-ci build"
-git push --all
rules:
# Only run on release branches
-if:'$CI_COMMIT_BRANCH=~/^releases//'
when:always
```
## License
The [Semantic Versioning specification](https://semver.org/) was originally authored by Tom Preston-Werner and is licensed under [Creative Commons -- CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)