strip whitespace from rendered tag

This commit is contained in:
parent 4e076b90fb
commit 78b55a0422

View File

@ -118,7 +118,9 @@ class Tags:
version = api_get_source_package_version(branch, package_name)
if image.version_template is not None:
version = Template(image.version_template).render(version=version)
version = (
Template(image.version_template).render(version=version).strip()
)
tags = [version]
else: