Skip to content
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

oci registry login fails #2

Open
azurepilot opened this issue Jan 6, 2024 · 1 comment
Open

oci registry login fails #2

azurepilot opened this issue Jan 6, 2024 · 1 comment

Comments

@azurepilot
Copy link

This would be a cool extension for maven but using the current version and documentation I am not getting further :-(
It always fails with "Failed to execute goal com.tosan.plugin:oras-maven-plugin:0.0.5:push"

Looking deeper into the maven log I found one key issue:

[DEBUG] Use credentials from server list for ociregistry.
[DEBUG] C:\Tools\oras.exe registry login -u xxx https://xxx.azurecr.io --password-stdin can't login to registry
[ERROR] Error: unknown command "registry" for "oras"

Using the latest version of oras cli (1.1.0), this uses (just) "oras login [flags] "
So, does this plugin relay on an older version of oras cli?

I would greateful for any response. Thanks!

@azurepilot
Copy link
Author

I found a working solution and propose this as PR #3

I hope you adopt it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant