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:
commit
54f7d59621
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
image: "domaindrivenarchitecture/devops-build:4.0.7"
|
image: "domaindrivenarchitecture/devops-build:4.0.8"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- python --version
|
- python --version
|
||||||
|
|
2
build.py
2
build.py
|
@ -33,7 +33,7 @@ default_task = "dev"
|
||||||
name = "ddadevops"
|
name = "ddadevops"
|
||||||
MODULE = "not-used"
|
MODULE = "not-used"
|
||||||
PROJECT_ROOT_PATH = "."
|
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"
|
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||||
description = __doc__
|
description = __doc__
|
||||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Release(Validateable):
|
||||||
)
|
)
|
||||||
if self.version:
|
if self.version:
|
||||||
result += self.version.validate()
|
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")
|
result += self.__validate_is_not_empty__("release_current_branch")
|
||||||
if (
|
if (
|
||||||
self.release_current_branch is not None
|
self.release_current_branch is not None
|
||||||
|
|
Loading…
Reference in a new issue