Update .gitlab-ci.yml
This commit is contained in:
parent
e4ecebaa8f
commit
c4604f1725
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user