From 6cb05dcdc8738711e985a10867d26ea5a5895ee1 Mon Sep 17 00:00:00 2001 From: DeveloperDurpBot Date: Tue, 16 May 2023 00:11:05 +0000 Subject: [PATCH] ci: render Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/868198571 --- pipelines/build-container.yml | 44 ++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/pipelines/build-container.yml b/pipelines/build-container.yml index 92d2c08..d879e7e 100644 --- a/pipelines/build-container.yml +++ b/pipelines/build-container.yml @@ -2,17 +2,43 @@ stages: - versioning - build version: - image: registry.durp.info/ruby:latest + image: gittools/gitversion:5.12.0 stage: versioning script: - - if [ -z "$VERSION" ]; then - - VERSION="1" - - fi - - export COMMIT_COUNT=$(git rev-list --count HEAD) - - export BUILD_NUMBER=$CI_PIPELINE_ID - - export VERSION="$VERSION.$COMMIT_COUNT.$BUILD_NUMBER" - - echo "VERSION=$VERSION" > version.env - - cat version.env + # Begin of version-number.sh + - | + #Check for configuration + echo "mode: ContinuousDeployment + continuous-delivery-fallback-tag: '' + branches: + master: + mode: ContinuousDeployment + tag: 'dev' + increment: Minor + track-merge-target: true + tracks-release-branches: true + is-release-branch: false + prevent-increment-of-merged-branch-version: false + release: + regex: release?[/] + mode: ContinuousDeployment + increment: Patch + tag: '' + is-release-branch: true + prevent-increment-of-merged-branch-version: true + feature: + regex: feature?[/] + mode: ContinuousDeployment + increment: Inherit + tag: 'alpha' + is-release-branch: false + prevent-increment-of-merged-branch-version: true + ignore: + sha: [] + " > GitVersion.yml + version=$(/tools/dotnet-gitversion /showvariable NuGetVersionV2) + echo "VERSION=$version" >> version.env + cat version.env # End of version-number.sh artifacts: reports: