Steps Template
#10035
Replies: 1 comment
-
The metadata:
name: step-name-variable
namespace: argo
spec:
templates:
- name: main
inputs: {}
outputs: {}
metadata: {}
steps:
- - name: step-one
template: template-one
arguments: {}
- name: template-one
inputs:
parameters:
- name: step-name
value: '{{steps.name}}' # Pass in steps.name variable as an input parameter
outputs: {}
metadata: {}
container:
name: main
image: alpine:latest
command:
- /bin/sh
args:
- '-c'
- |
echo "Step Name: $stepname" # Print the environment variable
env:
- name: stepname
value: '{{inputs.parameters.step-name}}' # Set the steps.name env
resources: {}
entrypoint: main
arguments: {} Resources: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Im trying to get the step name by templating it in as an env variable inside a container (helm chart):
and im getting this error which says it cant resolve it:

Doc example for steps.name :

https://argoproj.github.io/argo-workflows/variables/
Beta Was this translation helpful? Give feedback.
All reactions