The type of the action. Should be set to PROMOTE_IMAGE.
same_location Required
Boolean
If set to true, promotes the image within the same registry (only tag changes). If false, promotes between different registries.
src Required
ImageDefinition
Source configuration defining where to pull the image from.
dest Required
ImageDefinition
Destination configuration defining where to push the image to.
Image Definition
Name
Type
Description
docker_registry Required
String
Source registry type. Available values: DOCKER_HUB, AMAZON_ECR, GOOGLE_ARTIFACT_REGISTRY, GITHUB_CONTAINER_REGISTRY, OTHER.
image Required
String
The source Docker image with tag (e.g., myapp/image:v1.0).
registry
String
The registry URL. Required for GOOGLE_ARTIFACT_REGISTRY and OTHER registry types. For Google Artifact Registry: region-specific URLs like us-central1-docker.pkg.dev, europe-west1-docker.pkg.dev. For custom registries: full registry URL.
username
String
Username for authentication. Required when using OTHER registry type without integration.
password
String
Password for authentication. Required when using OTHER registry type without integration.
integration
String
Integration ID for authentication. Required for DOCKER_HUB, AMAZON_ECR, GOOGLE_ARTIFACT_REGISTRY, GITHUB_CONTAINER_REGISTRY.
region
String
AWS region name. Required for AMAZON_ECR. The full list of regions is available here.
tag
String
New tag for the image (in dest object). Required when same_location is true.
Examples
Promote within the same registry (retag)
yaml
actions:
- action: "Promote to production tag"
type: PROMOTE_IMAGE
same_location: true
src:
docker_registry: DOCKER_HUB
image: mycompany/myapp:v1.2.3
integration: DOCKER_HUB
dest:
tag: production
Promote from Google Artifact Registry to custom registry