{"repo":"int128/create-ecr-repository-action","free":true,"listed":false,"github":"https://github.com/int128/create-ecr-repository-action","clone":"git clone https://github.com/int128/create-ecr-repository-action.git","description":"Action to create Amazon ECR or ECR Public repository and put lifecycle policy","language":"TypeScript","stars":17,"topics":["github-actions","typescript","aws","amazon-ecr"],"license":"MIT","category":"workflow-automation","readme_excerpt":"create-ecr-repository-action This is a GitHub Action to create a repository into Amazon ECR or ECR Public registry if it does not exist. It can put a lifecycle policy to the repository for cost saving. Getting Started To create a repository: If the repository exists, this action does nothing. Put a lifecycle policy To create a repository with a lifecycle policy: If the repository exists, this action just puts the lifecycle policy. Create into ECR Public To create a repository into ECR Public registry: If the repository exists, this action does nothing. Note that currently ECR Public does not support the lifecycle polocy. Full example Here is a full example to build an image and put it into an ECR repository: Inputs Name Default Description ------ --------- ------------ public false Set true to create into ECR Public registry repository (required) Repository name to create lifecycle-policy - Path to a file of lifecycle policy for the repository repository-policy - Path to a file of repository policy for the repository Outputs Name Description ------ ------------ repository-uri URI of the repository (in form of ACCOUNT.dkr.ecr.REGION.amazonaws.com/NAME or public.ecr.aws/ID/NAME )","default_branch":null,"files":null,"tree":[],"storefront":"/r/int128","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/int128/create-ecr-repository-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}