updated gitlab-ci
This commit is contained in:
parent
2ab5e33e0f
commit
68a5f93c52
@ -16,9 +16,7 @@ deploy-job:
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- touch test
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
|
||||
script:
|
||||
- ssh "$Live_Server_User"@"$Live_Server_Ip" -p 10122 "touch test"
|
||||
# script:
|
||||
|
||||
Reference in New Issue
Block a user