image on an action runs its steps inside a container image you build instead, so the tools a
step needs (psql, a migration binary, a specific helm version) ship with the action rather than
being installed by the script on every run.
Container actions are behind the
image-backed-actions org feature flag and are off by default.
Reach out to Nuon to enable it for your org.Requirements
- The
image-backed-actionsorg feature turned on. - An AWS install runner. Azure and GCP installs reject the run.
- Every step in the action uses
inline_contents.command,public_repo, andconnected_reposteps are not supported alongside an image.
Configure it
Addimage to the action and write each step as inline_contents:
actions/db_migrate.toml
timeout (30 minutes maximum), role,
enable_kube_config, env_vars, and template interpolation all behave exactly as they do for a
host-run action. See Configure actions for those.
Choosing an image
image is templated per install, so it can be a fixed reference or resolved from install state.
A public reference
actions/db_migrate.toml
A private image
Publish the image as a container image component and pointimage at its image.ref output:
actions/db_migrate.toml
dependencies.
Building the image
Your steps run with the image’s ownPATH, and the runner’s tooling is not available inside the
container, so every binary a step calls has to be in the image.