From 9b5003e4d251457a304e8b9f24ca54519f7fa0a4 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 12 Feb 2019 16:28:21 +0100 Subject: [PATCH] use ssh in ci script --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 667987d..b213ee2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,6 @@ job1: script: - echo "Hallo" - echo "Welt" - - echo "$SSH_PRIVATE_KEY" job2: stage: hello @@ -39,6 +38,12 @@ job3: - apt install -y msp430-libc - apt install -y binutils-msp430 - apt install -y gcc-msp430 + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | ssh-add + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan gitlab.com >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts script: - make clean - make all