update tag logic

This commit is contained in:
Francisco Schulz 2022-11-10 17:38:18 +01:00
parent 4bd6ee867f
commit 37b0280ab6
2 changed files with 16 additions and 6 deletions

View File

@ -55,7 +55,7 @@ then
fi
newVersion="$(poetry version -s)"
echo "new release on master with version: $newVersion"
elif [[ "$bamboo_planRepository_branchName" =~ ^(release/|hotfix/|bugfix/|feature/) ]]
elif [[ "$bamboo_planRepository_branchName" =~ ^(release/) ]]
then
if check_poetry_version
then
@ -64,12 +64,22 @@ then
fi
newVersion="$(poetry version -s)"
echo "new release on $bamboo_planRepository_branchName with version: $newVersion"
elif [[ "$bamboo_version_tag" != "dev" ]]
elif [[ "$bamboo_planRepository_branchName" =~ ^(hotfix/|bugfix/|feature/) ]]
then
newVersion="${bamboo_version_tag}"
echo "new special version build with: $newVersion"
if check_poetry_version
then
echo "updating version number by one prerelease increment"
poetry version prerelease
fi
newVersion="$(poetry version -s)"
echo "new release on $bamboo_planRepository_branchName with version: $newVersion"
# elif [[ "$bamboo_version_tag" != "dev" ]]
# then
# newVersion="$(poetry version -s)-${bamboo_version_tag}"
# echo "new special version build with: $newVersion"
else
newVersion="${bamboo_planRepository_1_branch}_${bamboo_buildNumber}"
poetry version prepatch
newVersion="$(poetry version -s)"
echo "dev build with tag: ${newVersion}"
fi

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "pyinfra"
version = "1.1.0"
version = "1.1.1a0"
description = ""
authors = ["Francisco Schulz <francisco.schulz@iqser.com>"]
license = "All rights reseverd"