Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Commits
6f776a62
Commit
6f776a62
authored
3 years ago
by
Iñigo Moreno i Caireta
Browse files
Options
Downloads
Patches
Plain Diff
With rosinstall now just includes no rosinstall
parent
6077b2db
No related branches found
No related tags found
1 merge request
!64
Resolve "Improve CI template organization"
Pipeline
#55800
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+2
-82
2 additions, 82 deletions
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
with
2 additions
and
82 deletions
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+
2
−
82
View file @
6f776a62
image
:
tecnalia-docker-dev.artifact.tecnalia.com/docker:git
variables
:
TMPDIR
:
/builds/${CI_PROJECT_NAMESPACE}
GIT_LFS_SKIP_SMUDGE
:
1
# Avoid fetching the files from LFS when doing git fetch
services
:
-
name
:
tecnalia-docker-dev.artifact.tecnalia.com/docker:dind
alias
:
docker
stages
:
-
build
workflow
:
rules
:
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_BRANCH
before_script
:
-
apk add --update bash coreutils tar wget
-
docker login tecnalia-docker-dev.artifact.tecnalia.com -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
include
:
'
https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/raw/35-improve-ci-template-organization/.gitlab-industrial-ci-kinetic-no-rosinstall.yml'
.industrial_ci
:
stage
:
build
...
...
@@ -37,63 +17,3 @@ before_script:
CMAKE_ARGS
:
'
-DCMAKE_CXX_FLAGS=-Wno-ignored-attributes
-Wno-int-in-bool-context'
tags
:
-
docker
\ No newline at end of file
industrial_ci_kinetic
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
kinetic
DOCKER_IMAGE
:
"
${ARTIFACT_DOCKER_URL}/flexbotics-base-devel:${ROS_DISTRO}"
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^melodic-.*/
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^noetic-.*/
when
:
never
-
when
:
always
industrial_ci_melodic
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
melodic
DOCKER_IMAGE
:
"
${ARTIFACT_DOCKER_URL}/flexbotics-base-devel:${ROS_DISTRO}"
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^melodic-.*/
industrial_ci_noetic
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
noetic
DOCKER_IMAGE
:
"
${ARTIFACT_DOCKER_URL}/flexbotics-base-devel:${ROS_DISTRO}"
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_COMMIT_REF_NAME =~ /^noetic-.*/
industrial_ci_kinetic_deploy
:
extends
:
.industrial_ci
variables
:
ROS_DISTRO
:
kinetic
DOCKER_IMAGE
:
"
${ARTIFACT_DOCKER_URL}/flexbotics-base-devel:${ROS_DISTRO}"
AFTER_SCRIPT
:
"
wget
-q
-O
-
https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/pre-deploy-cleanup.bash
|
bash"
DOCKER_COMMIT
:
industrial_ci_image
script
:
-
.ci_config/gitlab.sh
-
cd $(mktemp -d)
-
wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/archive/master/gitlab_templates-master.zip
-
unzip gitlab_templates-master.zip && cd gitlab_templates-master/deploy
-
cd base
-
chmod a+x ros_entrypoint.bash
-
docker build -t ${ARTIFACT_DOCKER_URL}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} .
-
docker push ${ARTIFACT_DOCKER_URL}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}
-
cd ..
-
cd dev
-
docker build --build-arg APPLICATION_IMAGE=${ARTIFACT_DOCKER_URL}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} -t ${ARTIFACT_DOCKER_URL}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}-dev .
-
docker push ${ARTIFACT_DOCKER_URL}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}-dev
-
cd ..
rules
:
-
if
:
$CI_COMMIT_TAG
include
:
'
https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/raw/35-improve-ci-template-organization/gitlab-ci/post-check.yml'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment