ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/868198571
This commit is contained in:
@@ -2,17 +2,43 @@ stages:
|
|||||||
- versioning
|
- versioning
|
||||||
- build
|
- build
|
||||||
version:
|
version:
|
||||||
image: registry.durp.info/ruby:latest
|
image: gittools/gitversion:5.12.0
|
||||||
stage: versioning
|
stage: versioning
|
||||||
script:
|
script:
|
||||||
- if [ -z "$VERSION" ]; then
|
# Begin of version-number.sh
|
||||||
- VERSION="1"
|
- |
|
||||||
- fi
|
#Check for configuration
|
||||||
- export COMMIT_COUNT=$(git rev-list --count HEAD)
|
echo "mode: ContinuousDeployment
|
||||||
- export BUILD_NUMBER=$CI_PIPELINE_ID
|
continuous-delivery-fallback-tag: ''
|
||||||
- export VERSION="$VERSION.$COMMIT_COUNT.$BUILD_NUMBER"
|
branches:
|
||||||
- echo "VERSION=$VERSION" > version.env
|
master:
|
||||||
- cat version.env
|
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
|
# End of version-number.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
|
|||||||
Reference in New Issue
Block a user