Skip to content

cmac4603/getecr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetECR CLI

See releases for binaries

Install with cargo

cargo install --git https://${GITHUB_TOKEN}:x-oauth-basic@github.com/cmac4603/getecr getecr

Environment Variables

  • ECR_IMAGE_PREFIX (if your images are collected with a common prefix, optionally add this env var)
  • ECR_REGISTRY_ID (if not specified will use default from AWS)

Get a single image tag & sha

$ getecr myapp 1.0.0
Image Tag: 1.0.0
Image Sha: sha256:f01292b8c692fd9a0367023dc5ab50fe4ced66efea0091e0c39475d8e94c098

No repo

$ getecr noapp 1.0.0
Error: The repository with name 'noapp' does not exist in the registry with id '1234567890'

No image tag found

$ getecr myapp 1.0.1
Error: No image tags found.

About

Fetches a single ECR image tag and sha

Resources

Stars

Watchers

Forks

Languages