From 6c199a9c5f1f09c17f7f8c1dbac85ed59571b1cf Mon Sep 17 00:00:00 2001 From: Tommy Persson <tommy.persson@liu.se> Date: Mon, 16 Nov 2020 21:22:03 +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..323efb9 --- /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_msgs.git + - cd .. + - catkin build -- GitLab