fromhera.workflowsimport(Artifact,Container,Workflow,modelsasm,)withWorkflow(generate_name="artifactory-repository-ref-",entrypoint="main",artifact_repository_ref=m.ArtifactRepositoryRef(key="my-key"),)asw:Container(name="main",image="docker/whalesay:latest",command=["sh","-c"],args=["cowsay hello world | tee /tmp/hello_world.txt"],outputs=[Artifact(name="hello_world",path="/tmp/hello_world.txt")],)
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:artifactory-repository-ref-spec:artifactRepositoryRef:key:my-keyentrypoint:maintemplates:-container:args:-cowsay hello world | tee /tmp/hello_world.txtcommand:-sh--cimage:docker/whalesay:latestname:mainoutputs:artifacts:-name:hello_worldpath:/tmp/hello_world.txt