Skip to content

ECRPushImage task should allow to set tag-immutability & lifecycle policy for the repository #485

@sanjesh1000

Description

@sanjesh1000

Is your feature request related to a problem? Please describe.

Hello Team,

I am pushing a docker image to the AWS ECR repository using the Azure DevOps pipeline with the help of the below task “ECRPushImage@1”.

- task: ECRPushImage@1
  inputs:
    awsCredentials: 'AWS_SERVICE_ACC'
    regionName: 'us-east-1'
    imageSource: 'imagename'
    sourceImageName: '${{parameters.image_name}}'
    sourceImageTag: '$(project_version)'
    repositoryName: '${{parameters.image_name}}'
    pushTag: '$(project_version)'
    autoCreateRepository: true
    forceDockerNamingConventions: false
    logRequest: true
    logResponse: true

It does create the ECR repository if it does not exist.
I want to enable ‘tag-immutability’ also for this repository so that tags can not be overwritten. &
I want to apply the lifecycle policy for this created repository also.
Is there any way to add these two options in this task ECRPushImage

Describe the solution you'd like

I want options in this task for tag-immutability & lifecycle policy text.

Describe alternatives you've considered

I can not use this task so I had to go through the rout of the AWS CNF template

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions