Here is a sample argo workflow which uses this technique:
https://github.com/argoproj/argo/blob/master/examples/sideca...