From 6b8336b6a5c4ea0b6da693a7e6df8eb186a73fa6 Mon Sep 17 00:00:00 2001 From: Dzmitry2D <120099104+dzmitrydd@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:02:19 +0300 Subject: [PATCH] 2963 Adding Gitversion configuration (#2518) * 2963 Adding Gitversion configuration * 2963 Adding Gitversion configuration, remove comments --- .github/workflows/base.yml | 2 ++ GitVersion.yml | 47 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 GitVersion.yml diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index d9ff3ab615..feeced1d82 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -124,6 +124,8 @@ jobs: uses: gittools/actions/gitversion/execute@v0.9.15 with: additionalArguments: ${{ inputs.git-version-mode }} + useConfigFile: true + configFilePath: GitVersion.yml - name: Install Helm uses: azure/setup-helm@v3 diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000000..9083c7bc77 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,47 @@ +# see https://gitversion.net/docs/reference/configuration#branch-configuration +assembly-versioning-scheme: MajorMinorPatch +mode: ContinuousDeployment +next-version: 5.10.0 +increment: Patch +branches: + master: + regex: ^main$ + mode: ContinuousDelivery + tag: '' + increment: Minor + prevent-increment-of-merged-branch-version: false + track-merge-target: true + is-release-branch: true + develop: + regex: ^develop$ + mode: ContinuousDeployment + tag: 'dev' + increment: Patch + prevent-increment-of-merged-branch-version: false + track-merge-target: true + tracks-release-branches: true + is-release-branch: false + qa: + regex: ^feature.* + mode: ContinuousDeployment + tag: 'qa' + increment: Patch + source-branches: [ 'develop', 'main' ] + prevent-increment-of-merged-branch-version: false + track-merge-target: false + tracks-release-branches: false + is-release-branch: false + others: + regex: ^fix.*|^bug.* + mode: ContinuousDeployment + tag: 'fe' + increment: Inherit + prevent-increment-of-merged-branch-version: false + track-merge-target: false + source-branches: [ 'develop', 'main' ] + tracks-release-branches: false + is-release-branch: false + is-mainline: false +ignore: + commits-before: 2024-08-01T00:30:00 +merge-message-formats: {}