Login, Pull, Tag, and Push into same registries at the same time with infinite number of accounts!
Simple, but handy:
./xerox.sh -u foo -p *********** -l registry.gitlab.com -r registry.foo.com/foo/sourceimage:srctag -t registry.bar.cloud/bar/destimage:dsttag-uusername-ppassword-lsource registry login url.-rsource image repository, name, and tag-tnew tag value
and:
1. loging in...
logged in successfully!
2. pulling image...
pulled successfully!
3. tagging image...
image tagged successfully!
3. pushing image...
image pushed successfully!
5. loging out...
logged out in successfully!
Running this script creates a folder under the working directory for each login, handle the jobs simultaneously, and remove the folder at the end.
0for exit successfully.1for unsuccessful login to registry with given credential.2failed on pulling image.3failed on tagging image.4push to the target registry failed.5failed on cleaning up the directory and local image caches.