-
Notifications
You must be signed in to change notification settings - Fork 0
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
✨ Implement publish command #146
Conversation
`csmctl publish` will generate the release similar to create command but additionally it will push the generated release to the oci repository. For this, we implemented the generic interface for assetsclients that we have in the CSO as well and that is fulfilled both by Github and OCI clients. Signed-off-by: janiskemper <[email protected]>
I tried pushing into the Harbor instance, but I was not successful. I set |
is this a problem of the registry or of this tool? Sounds to me like registry. Am I correct? In general I guess it would be doable to implement also a username password flow |
Yes, most likely this is a problem with the registry or I don't know how to generate a proper registry token. Maybe the problem is with the fact that the SCS registry uses OIDC and that's why I am getting 401 error - see https://github.com/goharbor/harbor/wiki/Harbor-FAQs#api.
I tried to change the code with the username/password auth and it works for me. |
cool! feel free to commit into this PR or make another PR on this branch. Or do you say this is ready to merge? then we can also merge it. If you want to review, then feel free! |
Signed-off-by: Roman Hros <[email protected]>
Hi @janiskemper and @chess-knight,
Then I use the
What did I do wrong? |
try the repository registry.scs.community/csctl-oci |
If I remember correctly, something like this |
Thanks @chess-knight and @janiskemper, adding the registry did the trick. But I also needed to append the provider name, so it was The only thing what is a little annoying is that the command doesn't detect if there's already the same release in the registry and uploads them every time. Usually I run the |
Hey @jschoone, I checked it and it is true. We should probably check beforehand whether it is there and only if it is not, then we upload it again! |
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.
Hey @jschoone, I checked it and it is true. We should probably check beforehand whether it is there and only if it is not, then we upload it again!
imo even without the check this can be merged for now
What this PR does / why we need it:
csmctl publish
will generate the release similar to create command but additionally it will push the generated release to the oci repository.For this, we implemented the generic interface for assetsclients that we have in the CSO as well and that is fulfilled both by Github and OCI clients.
Which issue(s) this PR fixes:
Fixes #142
TODOs: