-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
Had some chat discussion about this the other day, and I think it is worth considering:
|
@yhahn & @rclark, would love to get your eyes on this. I've set up the clean-up script to be a stand-alone CLI tool with the option to pass an image tag "blacklist" in. Noting that I left the actual deletion step commented out because it scared me, but tested on the When I investigated a few days ago, there din't seem to be a way to alarm on ECR. Curious if we have creative ways to use CustomMetrics at our disposal to setup ECR registry size. |
* `--maximum` The number of images to keep in the ECR registry. For example, if you want to keep 700 images in the ECR registry, you would wave the `--maximum=700` flag. The default value is 750. | ||
* `--blacklist` A comma-separated list of imageTags not subject to deletion. For example, if you want to ensure that imageTag `<tag-1>` and `<tag-2>` are not deleted, you would wave the `--blacklist=<tag-1>,<tag-2>` flag. | ||
|
||
You will need to have two environmental parameters set in your terminal: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol @emilymdubois always uses environmental
^_^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha @yhahn what do the masses use?
@emilymdubois ✨ this is awesome -- gave it a roll and cleaned up a bunch of old images in a repo. I think you can totally enable the deletion and 🚢 |
Thank you @yhahn 🙇 |
Refs issue #44
This PR tracks the addition of the following:
cc @rclark @yhahn @emilymcafee