-
Notifications
You must be signed in to change notification settings - Fork 6
Versioning & Deployment
Versioning is automated with help from GitHub Actions, semantic-release and the Git-flow branching Model.
According to Git-flow we have the following permanent branches with special roles:
-
develop
: Reflects the current development status. Feature branches are created from this and merged back to it, when complete. -
release
: Reflects the current testing status. When a stable state is reached ondevelop
branch, it can be merged torelease
. This will result in creating a release candidate. -
main
: Reflects the current productive status. When a release candidate is well tested, it can be merged (fromrelease
) tomain
. This will result in creating a productive release. Furthermore hot fix branches can be created from the main branch, when critical bugs have to be fixed. After merging them back tomain
they should be also merged back torelease
anddevelop
.
The version number follows the pattern major.minor.patch[-postfix]
(Semantic Versioning) and is determined by semantic-release automatically from analyzing the commit comments by scanning for special keywords. Therefore we have the important convention to choose on of the following key words as first statement in each commit message (followed by a colon):
- chore: TO BE DESCRIBED
- fix: for bug fixes, leads to increment in patch
- feat: for features, leads to increment in minor
- BREAKING CHANGE: for incompatible changes, leads to increment in major
The services / deployment units are bundled as docker images and uploaded to a public docker hub repository with name inoeg. This publishing process is triggered by merging / pushing commits to the special branches mentioned above. A push to
-
develop
leads to simply publishing the images with the floating tag 'develop' -
release
ormain
leads to determining a new version number as described above (in case ofrelease
with an RC-postfix) and publishes the images with the following tags:- exact version string
- major.minor (floating tag)
- major (floating tag)
- fix string 'latest' (floating tag)
Deployment is automated with help from GitHub Actions, Maven, Docker and Watchtower.