Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
815f7fad
Commit
815f7fad
authored
May 16, 2018
by
Guilhem Saurel
Browse files
fix image name
parent
db1bd045
Pipeline
#709
passed with stages
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
815f7fad
...
...
@@ -608,9 +608,8 @@ class Image(models.Model):
unique_together
=
(
'robotpkg'
,
'target'
,
'py3'
)
def
__str__
(
self
):
if
self
.
py3
:
return
f
'
{
self
.
robotpkg
}
-
{
self
.
target
}
-py3'
return
f
'
{
self
.
robotpkg
}
-
{
self
.
target
}
'
py
=
'-py3'
if
self
.
py3
else
''
return
f
'
{
self
.
robotpkg
}{
py
}
:
{
self
.
target
}
'
def
get_build_args
(
self
):
ret
=
{
'TARGET'
:
self
.
target
,
'ROBOTPKG'
:
self
.
robotpkg
,
...
...
@@ -623,8 +622,7 @@ class Image(models.Model):
def
get_image_name
(
self
):
project
=
self
.
robotpkg
.
project
project_name
=
project
.
name
.
lower
()
return
f
'
{
project
.
registry
()
}
/
{
project
.
main_namespace
.
slug
}
/
{
project_name
}
:
{
self
.
target
}
'
return
f
'
{
project
.
registry
()
}
/
{
project
.
main_namespace
.
slug
}
/
{
self
}
'
def
build
(
self
):
args
=
self
.
get_build_args
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment