From 8be3145e23700e9e4184bf0494cf78a7364e0d78 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 16 Jun 2023 15:09:53 +0200 Subject: [PATCH] Push tags in release_mixin --- .../python/ddadevops/application/release_mixin_services.py | 2 +- src/main/python/ddadevops/infrastructure/infrastructure.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index 1557390..813b4e8 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -48,7 +48,7 @@ class ReleaseService: release.build_files(), bump_message, ) - self.git_api.push() + self.git_api.push_follow_tags() def __set_version_and_commit__( self, version: Version, build_file_ids: List[str], message: str diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index ae8b5ce..57a2465 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -197,6 +197,9 @@ class GitApi: def push(self): return self.execution_api.execute("git push") + + def push_follow_tags(self): + return self.execution_api.execute("git push --follow-tags") def checkout(self, branch: str): return self.execution_api.execute(f"git checkout {branch}")