From 842b1f02e8bb9d1f6feb33f003d7d5ac54f7319c Mon Sep 17 00:00:00 2001 From: Tommy Persson <tommy.persson@liu.se> Date: Tue, 17 Nov 2020 17:21:35 +0100 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..39f7726 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: gitlab.liu.se:5000/lrs/lrs_docker_images/ci-noetic:latest + + +stages: + - build + - trigger + +build: + stage: build + script: + - pwd + - source /opt/ros/noetic/setup.bash + - export GIT_SSH_COMMAND='ssh -i /root/.ssh/lrs_deploy -o IdentitiesOnly=yes -o StrictHostKeyChecking=no' + - mkdir /root/.ssh + - printf "%b" "$K8S_SECRET_LRS_DEPLOY_KEY" > /root/.ssh/lrs_deploy + - chmod og-rw /root/.ssh/lrs_deploy + - cat /root/.ssh/lrs_deploy + - ls -l /root/.ssh/ + - mkdir ws + - cd ws + - mkdir src + - cd src + - git clone git@gitlab.liu.se:lrs/lrs_srvs.git + - cd .. + - catkin build -- GitLab