Skip to main content
StepAction is currently at v1beta1 stability level.
A StepAction represents the actionable components of a Step that can be referenced from Tasks. StepActions enable reusable step logic across multiple Tasks.

Resource Definition

string
required
tekton.dev/v1beta1
string
required
StepAction
ObjectMeta
required
Standard Kubernetes metadata.
StepActionSpec
required
Defines the desired state of the StepAction.

StepActionSpec

string
A user-facing description of the step action.
string
Container image reference to run for this StepAction.
[]string
Entrypoint array. Not executed within a shell. The image’s ENTRYPOINT is used if not provided.
[]string
Arguments to the entrypoint. The image’s CMD is used if not provided.
string
Script is the contents of an executable file to execute. If Script is not empty, the StepAction cannot have a Command and the Args will be passed to the Script.
string
Working directory for the step.
[]EnvVar
List of environment variables to set in the container.
[]ParamSpec
Input parameters required to run the StepAction. Parameters must be supplied when referencing this StepAction from a Step.See Parameter Types for details.
[]StepResult
Values that this StepAction can output.
SecurityContext
Security options the Step should run with. Takes precedence over Task-level security context.
[]VolumeMount
Volumes to mount into the Step’s filesystem.

Using StepActions in Steps

Steps can reference StepActions using the ref field:

Example