YAML for Push Docker Image

Push Docker image to a registry.

YAML parameters for Push Docker Image

PARAMETERS
integrationrequiredstring
Integration identifier for cloud provider authentication.
typerequiredstring

Value: DOCKER_PUSH

actionrequiredstring
Unique identifier for the action within the pipeline.
repositorystring
The Docker repository name.
regionstring
Cloud region for the build (when using cloud integrations).
docker_image_tagstring
The tag of the Docker image.
docker_registrystring enum
The type of registry from which the image is retrieved.
Allowed enum:
NONE,
DOCKER_HUB,
AMAZON_ECR,
GOOGLE_GCR,
GOOGLE_ARTIFACT_REGISTRY,
OTHER,
GIT_HUB_CONTAINER_REGISTRY,
ARTIFACT_REGISTRY,
DIGITAL_OCEAN_CONTAINER_REGISTRY
artifactstring
The identifier of the artifact from artifact registry.
docker_build_action_namestring
The name of the action from which the Docker image will be used.
registrystring
The URL of the Docker registry.
loginstring
The username for the Docker registry.
passwordstring
The password for the Docker registry.
trigger_timestring enum
Specifies when the action should be executed.
Allowed enum:
ON_EVERY_EXECUTION,
ON_SUCCESS,
ON_FAILURE,
ON_BACK_TO_SUCCESS,
ON_WARNING,
ON_WAIT_FOR_APPROVE,
ON_TERMINATE
loopstring[]
The list of variables for dynamic action execution. The action runs once for each value.
run_only_on_first_failureboolean
Defines whether the action should be executed on each failure. Restricted to and required if the trigger_time is ON_FAILURE.
disabledboolean
When set to true the action is disabled. By default it is set to false.
timeoutinteger
The timeout in seconds.
ignore_errorsboolean
If set to true the execution will proceed, mark action as a warning and jump to the next action. Doesn't apply to deployment actions.
retry_intervalinteger
Delay time between auto retries in seconds.
retry_countinteger
Number of retries if the action fails.
run_nextstring enum
Defines whether the action should run in parallel with the next one.
Allowed enum:
WAIT_ON_SUCCESS,
IN_SOFT_PARALLEL,
IN_HARD_PARALLEL
trigger_conditionsTriggerConditionYaml[]
The list of trigger conditions to meet so that the action can be triggered.
variablesVariableYaml[]
The list of variables you can use in the action.

Last modified on Jul 31, 2025

YAML examples for Push Docker Image

Push Docker image to registry

yaml
- action: "Push Docker image" type: "DOCKER_PUSH" docker_build_action_name: "Build Docker image" docker_registry: "GOOGLE_GCR" repository: "gcr.io/my-project/my-app" docker_image_tag: "$BUDDY_EXECUTION_REVISION" region: "us-central1" integration: "my_gcp_integration"

Simple Docker push

yaml
- action: "Push to registry" type: "DOCKER_PUSH" integration: "my-docker-registry" docker_build_action_name: "Build Dockerfile" repository: "my-repo"