From 80dd569051c647be6955a900c94427b1e39cae16 Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Sun, 28 Feb 2021 06:40:25 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e8725f..7bdda4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,11 @@ before_script: - python -V # Print out python version for debugging - pip install virtualenv - virtualenv venv - - source venv/bin/activate + - source venv/bin/activate- '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 test: script: