Commit 815f7fad authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix image name

parent db1bd045
Pipeline #709 passed with stages
in 53 seconds
......@@ -608,9 +608,8 @@ class Image(models.Model):
unique_together = ('robotpkg', 'target', 'py3')
def __str__(self):
if self.py3:
return f'{self.robotpkg}-{}-py3'
return f'{self.robotpkg}-{}'
py = '-py3' if self.py3 else ''
return f'{self.robotpkg}{py}:{}'
def get_build_args(self):
ret = {'TARGET':, 'ROBOTPKG': self.robotpkg,
......@@ -623,8 +622,7 @@ class Image(models.Model):
def get_image_name(self):
project = self.robotpkg.project
project_name =
return f'{project.registry()}/{project.main_namespace.slug}/{project_name}:{}'
return f'{project.registry()}/{project.main_namespace.slug}/{self}'
def build(self):
args = self.get_build_args()
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