Commit 0405ac12 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

no spaces in docker image names

parent 24294f32
Pipeline #1927 passed with stages
in 1 minute and 32 seconds
......@@ -742,12 +742,12 @@ class Image(models.Model):
def get_image_name(self):
project = self.robotpkg.project
return f'{project.registry()}/{project.main_namespace.slug}/{project}/{self}'.lower()
return f'{project.registry()}/{project.main_namespace.slug}/{project.slug}/{self}'.lower()
def get_image_url(self):
project = self.robotpkg.project
manifest = str(self).replace(':', '/manifests/')
return f'https://{project.registry()}/v2/{project.main_namespace.slug}/{project}/{manifest}'
return f'https://{project.registry()}/v2/{project.main_namespace.slug}/{project.slug}/{manifest}'
def get_job_name(self):
mode = 'debug' if self.debug else 'release'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment