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")