Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20921

aws-ecr-push-image support for immutable tags (ignore if already exists)

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      I was contemplating filing this under bugs, but I guess it belongs here more.

       

      AWS ECR has the option for immutable tags:

      https://aws.amazon.com/about-aws/whats-new/2019/07/amazon-ecr-now-supports-immutable-image-tags/

       

      These are useful for the added security. Bitbucket pipelines works fine on the first run and push to the ECR repository, but if you re-run the pipeline for any reason you will get the following error upon the second push:

      Docker push error: tag invalid: The image tag 'tag' already exists in the 'name' repository and cannot be overwritten because the repository is immutable.

       

      Feature request: option to ignore the error if the image already exists.

      (this might even be considered as the default behavior)

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            427394c12c5b Tarek Abdel Sater
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: