From 93a3c31341b36d93df2d144800f7f41c23a7557b Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommy.persson@liu.se>
Date: Tue, 17 Nov 2020 16:13:00 +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..a1dc04f
--- /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_tfpop.git
+    - cd ..
+    - catkin build
-- 
GitLab