Sign inSign up

bankbetch/clear-aws-ecr

By bankbetch

•Updated almost 3 years ago

Remove unused image on AWS ECR

Image
0

174

bankbetch/clear-aws-ecr repository overview

cat <<EOF > tmp
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
region = ap-southeast-1
output = json
EOF
base64_content=$(cat tmp | base64)

export AWS_API_KEYFILE=base64_content
REPO=Repository name
TAG_BRANCH=ex.dev production
KEEP_IMAGE=Remove image less than $KEEP_IMAGE

Tag summary

Content type

Image

Digest

sha256:0976e799a…

Size

118.6 MB

Last updated

almost 3 years ago

docker pull bankbetch/clear-aws-ecr:0.0.1