Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.59 KB

README.adoc

File metadata and controls

70 lines (51 loc) · 1.59 KB

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