from hera.workflows import Container, Parameter, Step, Steps, Workflow
with Workflow(
generate_name="steps-",
entrypoint="hello-hello-hello",
) as w:
whalesay = Container(
name="whalesay",
inputs=[Parameter(name="message")],
image="docker/whalesay",
command=["cowsay"],
args=["{{inputs.parameters.message}}"],
)
with Steps(name="hello-hello-hello") as s:
Step(
name="hello1",
template="whalesay",
arguments=[Parameter(name="message", value="hello1")],
)
with s.parallel():
Step(
name="hello2a",
template="whalesay",
arguments=[Parameter(name="message", value="hello2a")],
)
Step(
name="hello2b",
template="whalesay",
arguments=[Parameter(name="message", value="hello2b")],
)