Skip to content

cloudbees-io/ecr-promote-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees action: Promote an image in Amazon ECR

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

Note: Information related to the artifacts created with this action will be published to CloudBees Platform.

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'

License

This code is made available under the MIT license.

References