-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nexus-cli image delete and keep option (wrong sorting) #33
Comments
That is because the code is sorting images by name (string comparison) so 100 will appear before 90 and be deleted. Believe pull request #29 might resolve it. |
So, when we can expect it to be merged? |
Its even worse. I had
And did a:
And it deleted my freshly created latest tag immediately, This makes the whole |
Looks like the repository is not maintained already. I fork the repo and fix sorting issue by made image sorting by last modified date. If you still need fix, you can get build binaries from my repo: https://github.com/13rentgen/nexus-cli/releases/tag/v1.1.0 |
I had registry with 190 tags for image, tags were generated automagically and images were pushed with incremented version number from 1 to 190.
I have decided to remove old images and keep only last 20:
and the effect is:
Nexus-cli version:
nexus@reg:~$ ./nexus-cli --version Nexus CLI version 1.0.0-beta
The text was updated successfully, but these errors were encountered: