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
0405ac12
Commit
0405ac12
authored
Nov 27, 2018
by
Guilhem Saurel
Browse files
no spaces in docker image names
parent
24294f32
Pipeline
#1927
passed with stages
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
0405ac12
...
...
@@ -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'
...
...
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