fix image build

This commit is contained in:
Michael Jerger 2023-05-19 15:49:24 +02:00
parent 8226d34c49
commit 31178e940d
2 changed files with 2 additions and 3 deletions

View file

@ -58,8 +58,6 @@ class ImageBuildService:
def dockerhub_publish(self, devops: Devops):
image = devops.specialized_builds[BuildType.IMAGE]
if image.image_tag is None or image.image_tag == "":
raise ValueError(f"image_tag must not be empty.")
self.image_api.dockerhub_publish(
devops.name, image.image_dockerhub_user, image.image_tag
)

View file

@ -105,6 +105,7 @@ class InitService:
if not tag:
tag = version.to_string()
if tag:
result["image_tag"] = tag
return result