update tag logic
This commit is contained in:
parent
4bd6ee867f
commit
37b0280ab6
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user