aws-toolkit-azure-devops
aws-toolkit-azure-devops copied to clipboard
ECRPushImage task should allow to set tag-immutability & lifecycle policy for the repository
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!