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

Container registry publishedpath #13101

Open
hennevogel opened this issue Sep 19, 2022 · 0 comments
Open

Container registry publishedpath #13101

hennevogel opened this issue Sep 19, 2022 · 0 comments
Labels
Backend Things regarding the OBS backend Feature

Comments

@hennevogel
Copy link
Member

hennevogel commented Sep 19, 2022

We already do some mapping of URLs in published_path and we have configuration for container registries. We should return a registry URL in view: :publishedpath if ($repotype{'docker'}) and some registry is configured.

Seems we already do something like that in bs_publish.

What you currently get:

osc api "/build/OBS:Server:Unstable:Containers/containers/x86_64/base/openbuildservice-base.x86_64-bp154.18.167.tar?view=publishedpath"
<publishedpath project="OBS:Server:Unstable:Containers" repository="containers">
  <path>OBS:/Server:/Unstable:/Containers/containers</path>
  <url>https://download.opensuse.org/repositories/OBS:/Server:/Unstable:/Containers/containers</url>
</publishedpath>

What I would expect to get:

osc api "/build/OBS:Server:Unstable:Containers/containers/x86_64/base/openbuildservice-base.x86_64-bp154.18.167.tar?view=publishedpath"
<publishedpath project="OBS:Server:Unstable:Containers" repository="containers">
  <path>OBS:/Server:/Unstable:/Containers/containers</path>
  <url>registry.opensuse.org/obs/server/unstable/containers/containers/openbuildservice/base:latest</url>
</publishedpath>
@hennevogel hennevogel added Feature Backend Things regarding the OBS backend labels Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Things regarding the OBS backend Feature
Projects
None yet
Development

No branches or pull requests

1 participant