Update .gitlab-ci.yml

This commit is contained in:
solomon laing 2021-04-01 09:40:04 +00:00
parent e4ecebaa8f
commit c4604f1725

View File

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