CloudBees action: Promote an image in Amazon ECR

1 minute read

Use this action to promote an image in Amazon Elastic Container Registry (Amazon ECR).

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required? Description

registry-url

String

Yes

The Amazon ECR registry URL.

source-repository-name

String

Yes

The Amazon ECR source repository name.

target-repository-name

String

Required only if target-tag is identical to source-tag.

The Amazon ECR target repository name.

source-tag

String

Yes

The Amazon ECR source image tag.

target-tag

String

Required only if the target-repository-name is identical to the source-repository-name.

The Amazon ECR target image tag.

Usage example

In your YAML file, add:

- name: Promote an image in ECR uses: cloudbees-io/ecr-promote-image@v1 with: registry-url: ${{ vars.REGISTRY_URL }} source-repository-name: my-ecr-repo-name target-repository-name: my-ecr-repo-name source-tag: '6' target-tag: '7'