GoogleCloudPlatform / gcr-cleaner

Delete untagged image refs in Google Container Registry or Artifact Registry
Apache License 2.0
805 stars 112 forks source link

Doc: Support for artifacts from other regions #23

Closed bhr closed 3 years ago

bhr commented 3 years ago

Thanks for providing the docker image and guide for cleaning up gcr images, really appreciate it!

It took me some time to figure out how to make gcr-cleaner work with images that are hosted on eu.gcr.io.

I thought it might be helpful to share this for others who are using regions other than us:

I've created a shell script with which you have to only replace the variables at the top of the file and then run it. It supports defining multiple images under the same repository. Find the gist here

smashah commented 3 years ago

thanks for your script @bhr very useful.

I forked and edited it to work for my use cases maybe someone else can find it helpful: https://gist.github.com/smashah/54047d73973748bf4dcdd480fee60071

thanks