Replace tag with version

I assume you meant version and not tag here.
This commit is contained in:
Torfinn Nome
2020-09-22 13:58:42 +02:00
committed by GitHub
parent 2014062833
commit 2b76855e3e
+2 -2
View File
@@ -124,9 +124,9 @@ def parse_tag(tag):
match = BUILD_NUMBER_REGEX.search(version)
if match:
build_number = int(match.group(0))
if '--' in tag:
if '--' in version:
version, build_string = version.rsplit('--', 1)
elif '-' in tag:
elif '-' in version:
# Should be mulled multi-container image tag
version, build_string = version.rsplit('-', 1)
else: