Merge branch 'fix-release-for-detached-heads' into 'main'

Fix release validation for detached heads

See merge request domaindrivenarchitecture/dda-devops-build!15
This commit is contained in:
Michael Jerger 2023-07-07 14:37:36 +00:00
commit 54f7d59621
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
image: "domaindrivenarchitecture/devops-build:4.0.7"
image: "domaindrivenarchitecture/devops-build:4.0.8"
before_script:
- python --version

View file

@ -33,7 +33,7 @@ default_task = "dev"
name = "ddadevops"
MODULE = "not-used"
PROJECT_ROOT_PATH = "."
version = "4.0.8-dev1"
version = "4.0.9-dev1"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -46,7 +46,7 @@ class Release(Validateable):
)
if self.version:
result += self.version.validate()
if self.release_type is not None:
if self.release_type is not None and self.release_type != ReleaseType.NONE:
result += self.__validate_is_not_empty__("release_current_branch")
if (
self.release_current_branch is not None