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
b61d63de
Commit
b61d63de
authored
May 17, 2018
by
Guilhem Saurel
Browse files
fix image tags
parent
484d6903
Pipeline
#743
passed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
b61d63de
...
...
@@ -620,7 +620,7 @@ class Image(models.Model):
def
get_image_name
(
self
):
project
=
self
.
robotpkg
.
project
return
f
'
{
project
.
registry
()
}
/
{
project
.
main_namespace
.
slug
}
/
{
self
}
'
return
f
'
{
project
.
registry
()
}
/
{
project
.
main_namespace
.
slug
}
/
{
project
}
/
{
self
}
'
def
get_image_url
(
self
):
project
=
self
.
robotpkg
.
project
...
...
rainboard/templates/rainboard/gitlab-ci.yml
View file @
b61d63de
variables
:
GIT_SUBMODULE_STRATEGY
:
"
recursive"
GIT_DEPTH
:
"
3"
NAMESPACE
:
{{
project.main_namespace.slug
}}
PROJECT
:
{{
project
}}
REGISTRY
:
{{
project.registry
}}
IMAGE
:
"
${REGISTRY}/${NAMESPACE}/${PROJECT}"
CCACHE_BASEDIR
:
"
${CI_PROJECT_DIR}"
CCACHE_DIR
:
"
${CI_PROJECT_DIR}/ccache"
...
...
@@ -14,15 +10,12 @@ cache:
{
%
for robotpkg in project.robotpkg_set.all %
}
.robotpkg-{{ robotpkg }}
:
&robotpkg-
{{
robotpkg
}}
variables
:
ROBOTPKG
:
{{
robotpkg
}}
CATEGORY
:
{{
robotpkg.category
}}
except
:
-
gh-pages
before_script
:
-
mkdir -p ccache
script
:
-
cd
/
root
/robotpkg/${CATEGORY}/${ROBOTPKG
}
-
cd
{{
ro
b
ot
pkg.category }}/{{ robotpkg }
}
-
git pull
-
make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}"
-
make install
...
...
@@ -34,7 +27,7 @@ cache:
{
%
for image in robotpkg.valid_images %
}
robotpkg-{{ image }}
:
<<
:
*robotpkg-
{{
robotpkg
}}
image
:
${IMAGE}{% if image.py3 %}-py3{% endif %}:{{ image.target
}}
image
:
{{
image.get_image_name
}}
{
%
if project.docs and image.target.name == '16.04' and not image.py3 %
}
artifacts
:
expire_in
:
1 day
paths
:
...
...
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