From c4604f1725e1fd801c6cbb2c79844fbf6df8cc7e Mon Sep 17 00:00:00 2001 From: solomon laing Date: Thu, 1 Apr 2021 09:40:04 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 832db6b..7c23695 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,11 +29,10 @@ deploy-job: - '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 - - - echo -e "\n" - mkdir -p ~/.ssh - chmod 700 ~/.ssh script: - - ssh gitlab@"$Live_Server_Ip" -p 10122 "touch test" + - ssh "$Live_Server_User"@"$Live_Server_Ip" -p 10122 "touch test" # script: # - tar zcf ../angularproject.tar.gz ./dist # - ssh-add < (echo "$Live_Server_Private_Key")