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