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}")