From 8b2cbe9446f9206b7b70569d00b3cdb14b3708ff Mon Sep 17 00:00:00 2001 From: Sintal <61sima1bif@hft-stuttgart.de> Date: Wed, 5 May 2021 21:34:33 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 41d2ec7..ee9420e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,11 @@ before_script: - echo "Hello, $GITLAB_USER_LOGIN!" - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - - apt-get install sshpass - - echo $SSH_PASSPHRASE - - sshpass -p $SSH_PASSPHRASE + #- apt-get install sshpass + #- sshpass -p $SSH_PASSPHRASE - echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null + - expect "Enter passphrase for (stdin):" + - send $SSH_PASSPHRASE - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts -- GitLab