terraformDummyRepo/release_mixin.py

46 lines
1 KiB
Python
Raw Normal View History

2023-02-16 13:21:27 +00:00
from ddadevops import DevopsBuild
from ddadevops import execute
from ddadevops import gopass_field_from_path, gopass_password_from_path
from version import Version
def add_release_mixin_config(config, release_type, commit, file):
config.update({'ReleaseMixin':
{'release_type': release_type,
'commit': commit,
'file': file}})
return config
class ReleaseMixin(DevopsBuild):
def __init__(self, project, config):
super().__init__(project, config)
release_mixin_config = config['ReleaseMixin']
self.release_type = release_mixin_config['release_type4']
self.commit = release_mixin_config['commit']
self.file = release_mixin_config['file']
def read_commit_message(self):
pass
def calculate_release_type(self):
pass
def get_version(self):
return Version.from_file(self.file)
def create_release_version(self):
pass
def create_bump_version(self):
pass