format
parent
e501525db2
commit
2add0a76a2
@ -1,16 +1,17 @@
|
||||
from src.main.python.ddadevops.domain import (
|
||||
DevopsFactory, Devops
|
||||
)
|
||||
from src.main.python.ddadevops.domain import DevopsFactory, Devops
|
||||
|
||||
|
||||
def build_devops(overrides: dict) -> Devops:
|
||||
default = {'build_type': 'IMAGE',
|
||||
'stage': 'test',
|
||||
'project_root_path': "../../..",
|
||||
'name': 'mybuild',
|
||||
'module': 'test_image',
|
||||
'dockerhub_user': 'dockerhub_user',
|
||||
'dockerhub_password': 'dockerhub_password',
|
||||
'docker_image_tag': 'docker_image_tag',}
|
||||
default = {
|
||||
"build_type": "IMAGE",
|
||||
"stage": "test",
|
||||
"project_root_path": "../../..",
|
||||
"name": "mybuild",
|
||||
"module": "test_image",
|
||||
"dockerhub_user": "dockerhub_user",
|
||||
"dockerhub_password": "dockerhub_password",
|
||||
"docker_image_tag": "docker_image_tag",
|
||||
}
|
||||
input = default.copy()
|
||||
input.update(overrides)
|
||||
return DevopsFactory().build_devops(input)
|
||||
|
Loading…
Reference in New Issue