fromhera.workflowsimport(Container,GCSArtifact,Workflow,modelsasm,)withWorkflow(generate_name="output-artifact-gcs-",entrypoint="whalesay")asw:Container(name="whalesay",image="docker/whalesay:latest",command=["sh","-c"],args=["cowsay hello world | tee /tmp/hello_world.txt"],outputs=[GCSArtifact(name="message",path="/tmp",bucket="my-bucket",key="path/in/bucket/hello_world.txt.tgz",service_account_key_secret=m.SecretKeySelector(name="my-gcs-credentials",key="serviceAccountKey"),)],)
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:output-artifact-gcs-spec:entrypoint:whalesaytemplates:-container:args:-cowsay hello world | tee /tmp/hello_world.txtcommand:-sh--cimage:docker/whalesay:latestname:whalesayoutputs:artifacts:-gcs:bucket:my-bucketkey:path/in/bucket/hello_world.txt.tgzserviceAccountKeySecret:key:serviceAccountKeyname:my-gcs-credentialsname:messagepath:/tmp