From 028d67d1c01fdaecca3a6eb267564abc99cf1f38 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Sun, 27 Mar 2022 21:43:59 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17e4ad8..f021011 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,13 @@ image: 'python:3' +before_script: + - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config' + stages: - deploy -- cgit v1.2.3