fix image build
This commit is contained in:
parent
8226d34c49
commit
31178e940d
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -105,6 +105,7 @@ class InitService:
|
|||
if not tag:
|
||||
tag = version.to_string()
|
||||
|
||||
if tag:
|
||||
result["image_tag"] = tag
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue