forked from fzi-forschungszentrum-informatik/Lanelet2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (38 loc) · 1.16 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#version=1.5
include:
- project: 'pub/mrt_cmake_modules'
ref: master
file: '/ci_templates/default_catkin_project.yml'
# Tests installing on a plain system without mrt stuff using the provided Docker image
.build_docker: &build_docker
stage: build
image: docker:18.09
only:
- master
- merge_requests
before_script: []
cache: {}
services:
- docker:18.09-dind
script:
- export IMAGE_NAME=$CI_REGISTRY_IMAGE:$DISTRIBUTION
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build --cache-from $IMAGE_NAME -t $IMAGE_NAME --build-arg=DISTRIBUTION=$DISTRIBUTION --build-arg=ROS_DISTRO=$ROS_DISTRO .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- if [ "$CI_COMMIT_REF_NAME" = "master" ]; then docker push $IMAGE_NAME; fi
build_docker_xenial:
<<: *build_docker
variables:
DISTRIBUTION: "16.04"
ROS_DISTRO: kinetic
DOCKER_DRIVER: overlay2
GIT_STRATEGY: fetch
build_docker_bionic:
<<: *build_docker
variables:
DISTRIBUTION: "18.04"
ROS_DISTRO: melodic
DOCKER_DRIVER: overlay2
GIT_STRATEGY: fetch
check_code_quality:
allow_failure: true