mirror of
https://github.com/cupcakearmy/tumbo.git
synced 2024-12-22 08:16:26 +00:00
21 lines
525 B
Python
21 lines
525 B
Python
from tumbo.tumbo import login_if_required, compile_templates, process_queue
|
|
|
|
|
|
def runner(context, variables, recipe, tag=None, registry=None, parallel=True, push=False, run=False):
|
|
host = login_if_required(registry)
|
|
|
|
queue = compile_templates(variables, recipe, tag, context)
|
|
if host:
|
|
queue = [
|
|
(rendered, f'{host}/{tag}')
|
|
for rendered, tag in queue
|
|
]
|
|
|
|
process_queue(
|
|
queue,
|
|
context,
|
|
parallel=parallel,
|
|
push=push,
|
|
run=run,
|
|
)
|